[Python-checkins] r85398 - python/branches/py3k/Lib/runpy.py

benjamin.peterson python-checkins at python.org
Wed Oct 13 03:04:36 CEST 2010


Author: benjamin.peterson
Date: Wed Oct 13 03:04:36 2010
New Revision: 85398
Log:
account for the module __dict__ being cleared when its module is
Modified:
 python/branches/py3k/Lib/runpy.py
Modified: python/branches/py3k/Lib/runpy.py
==============================================================================
--- python/branches/py3k/Lib/runpy.py	(original)
+++ python/branches/py3k/Lib/runpy.py	Wed Oct 13 03:04:36 2010
@@ -271,7 +271,7 @@
 _ModifiedArgv0(path_name):
 mod_globals = temp_module.module.__dict__
 return _run_code(code, mod_globals, init_globals,
- run_name, fname, loader, pkg_name)
+ run_name, fname, loader, pkg_name).copy()
 finally:
 try:
 sys.path.remove(path_name)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /