]> granicus.if.org Git - python/commit
PyImport_Import was using the old import hack of sticking a dummy value into
authorBrett Cannon <bcannon@gmail.com>
Sun, 19 Sep 2010 21:39:02 +0000 (21:39 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 19 Sep 2010 21:39:02 +0000 (21:39 +0000)
commitbc2eff31128e9d6b2e0c5ce788acf1633bcc0ccb
tree50bef6ee339b02fca37d59524373b7a28003a98a
parente1f2f30328cd4fb0cdd77dea3f53b722d5a9a38d
PyImport_Import was using the old import hack of sticking a dummy value into
fromlist to get __import__ to return the module desired. Now it uses the proper
approach of fetching the module from sys.modules.

Closes issue #9252. Thanks to Alexander Belopolsky for the bug report.
Misc/NEWS
Python/import.c