This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients Ryan.Twitchell, brett.cannon, meador.inge, ncoghlan
Date 2011-12-13.15:17:19
SpamBayes Score 0.0007600129
Marked as misclassified No
Message-id <1323789440.14.0.587507072437.issue13591@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this on tip.  What happens is that 
'importlib.import_module("my_lib.bar")' is effectively computed as:

   import my_lib
   import bar

by '_bootstrap._gcd_import'.  When '_gcd_import' goes to do the import
of 'bar' it does *not* check to see if 'bar' has already been imported
by the parent import.

Here is a patch *without* tests that fixes this.  I will add the tests
next.
History
Date User Action Args
2011-12-13 15:17:20meador.ingesetrecipients: + meador.inge, brett.cannon, ncoghlan, Ryan.Twitchell
2011-12-13 15:17:20meador.ingesetmessageid: <1323789440.14.0.587507072437.issue13591@psf.upfronthosting.co.za>
2011-12-13 15:17:19meador.ingelinkissue13591 messages
2011-12-13 15:17:19meador.ingecreate