]> granicus.if.org Git - python/commit
Close #24748: Restore imp.load_dynamic compatibility
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 5 Sep 2015 11:05:05 +0000 (21:05 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 5 Sep 2015 11:05:05 +0000 (21:05 +1000)
commit9d3c61c86a20678d604c96a68bbf4a966877f0b9
tree77e38b72e9258da435606d28543cc0362787eeff
parent1b6691053701e92490c6b68171d6d6a645f8e708
Close #24748: Restore imp.load_dynamic compatibility

To resolve a compatibility problem found with py2exe and
pywin32, imp.load_dynamic() once again ignores previously loaded modules
to support Python modules replacing themselves with extension modules.

Patch by Petr Viktorin.
Lib/imp.py
Lib/test/imp_dummy.py [new file with mode: 0644]
Lib/test/test_imp.py
Misc/NEWS
Modules/_testmultiphase.c