When func_with_dict_1
is loaded, dict literal ret
in it is not constructed.
Dict ret
is constructed on call and get_value
with side effect is called.
Example running python3 lazy_consumer.py
:
Before calling func_with_dict_1
Called from txt
After calling func_with_dict_1