exec and globals and locals ...
Eko palypse
ekopalypse at gmail.com
Thu Sep 19 06:20:29 EDT 2019
> Then it should be clear that the name 'test01' is put into globals(), if
> load_module() doesn't throw an exception. No sharing or nesting of
> namespaces takes place.
Thank you too for your answer. Ok, that means that in every case when exec
imports something it has its own global namespace, right?
Is there a way to manipulate this namespace before any code from that module
gets executed?
Eren
More information about the Python-list
mailing list