2 ms·
there is a nice "staticscope" package in python, which acts as a context manager, and does pretty much what you refer to. pretty neat. https://pypi.org/project
by tpoacher 2y ago
there is a nice "staticscope" package in python, which acts as a context manager, and does pretty much what you refer to. pretty neat.
https://pypi.org/project/scoping/ https://pypi.org/project/scoping/