Message159096
| 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:04 | pitrou | set | recipients:
+ pitrou, brett.cannon, ncoghlan |
| 2012年04月23日 22:34:04 | pitrou | set | messageid: <1335220444.14.0.163321462904.issue14657@psf.upfronthosting.co.za> |
| 2012年04月23日 22:34:03 | pitrou | link | issue14657 messages |
| 2012年04月23日 22:34:03 | pitrou | create |
|