Message75269
| Author |
brett.cannon |
| Recipients |
brett.cannon |
| Date |
2008年10月27日.23:54:48 |
| SpamBayes Score |
1.4827028e-12 |
| Marked as misclassified |
No |
| Message-id |
<1225151690.45.0.148941839144.issue4211@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Looking at Python/import.c:find_module, fixing this will require
changing the setting of __path__ for frozen packages and how frozen
modules are found. The former will require changing
PyImport_ImportFrozenModule() to use a list instead of a string for the
packages.
To make the change work for find frozen modules, find_module() will need
to change. Basically the special-casing for 'path' around frozen module
just needs to go. This will lead to a slight performance penalty as all
imports will require checking for an equivalent frozen module, but since
it is a strcmp in a loop it should not be too bad.
The performance cost can go away if some strapping young lad happens to
re-implement import in such a way that the frozen module parts can
easily be left out. =)
Setting as a release blocker for now in case Barry is willing to let
this go into 3.0rc4. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月27日 23:54:50 | brett.cannon | set | recipients:
+ brett.cannon |
| 2008年10月27日 23:54:50 | brett.cannon | set | messageid: <1225151690.45.0.148941839144.issue4211@psf.upfronthosting.co.za> |
| 2008年10月27日 23:54:49 | brett.cannon | link | issue4211 messages |
| 2008年10月27日 23:54:48 | brett.cannon | create |
|