I\'m using the inspect module to learn more about function namespaces:
inspect
import inspect def foo(): inspect.__cache__.update({\'dummy\': 0}) #