computed
=
False
def
get_value
(
)
:
global
value
if
not
computed:
value
=
compute_value
(
)
computed
=
true
return
value