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 pitrou
Recipients brett.cannon, ncoghlan, pitrou
Date 2012-04-23.22:34:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335220444.14.0.163321462904.issue14657@psf.upfronthosting.co.za>
In-reply-to
Content
This patch avoids creating a second copy of importlib._bootstrap when a first one exists as _frozen_importlib.
This isn't perfect as it mutates the module when importlib is imported for the first time, but I think it's better than the status quo.
Also, importlib itself could be imported somewhere along the startup phase, so that all this is invisible to the user.

I'm not sure how to test this, since _frozen_importlib is an implementation detail, and changing that module's name would probably defeat the test already.
History
Date User Action Args
2012-04-23 22:34:04pitrousetrecipients: + pitrou, brett.cannon, ncoghlan
2012-04-23 22:34:04pitrousetmessageid: <1335220444.14.0.163321462904.issue14657@psf.upfronthosting.co.za>
2012-04-23 22:34:03pitroulinkissue14657 messages
2012-04-23 22:34:03pitroucreate