Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- computed = False
- def get_value():
- global value
- if not computed:
- value = compute_value()
- computed = true
- return value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement