Message75269
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. |
|
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 | |
|