[issue18331] runpy.run_path gives functions with corrupted .__globals__
Richard Oudkerk
report at bugs.python.org
Sun Jun 30 18:58:58 CEST 2013
Richard Oudkerk added the comment:
When modules are garbage collected the associated globals dict is purged -- see #18214. This means that all values (except __builtins__) are replaced by None.
To work around this run_path() apparently returns a *copy* of the globals dict which was created before purging.
----------
nosy: +sbt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18331>
_______________________________________
More information about the Python-bugs-list
mailing list