Message75432
| Author |
brett.cannon |
| Recipients |
brett.cannon |
| Date |
2008年10月31日.22:54:12 |
| SpamBayes Score |
1.0827339e-11 |
| Marked as misclassified |
No |
| Message-id |
<1225493656.7.0.491759141743.issue4211@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I have an attached patch that fixes the reported problem.
First, it adds a sanity check that no empty module name is checked for
(crashes the interpreter otherwise).
Second, the __path__ attribute is now a list. This does break
backwards-compatibility and thus cannot be backported to 2.6.
Third, I removed the special-casing of frozen packages and just made
frozen module checks a universal thing. This did change the module
resolution order such that frozen modules are checked before built-in
modules and registered modules under Windows (whatever those are).
Moving frozen modules after those two cases are possible if it's really
desired.
At this point I need a review to get this into 3.0 and a decision on
whether to backport to 2.7 (I say don't bother, out of
backward-compatibility, but it probably wouldn't really hurt anything
either). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月31日 22:54:17 | brett.cannon | set | recipients:
+ brett.cannon |
| 2008年10月31日 22:54:16 | brett.cannon | set | messageid: <1225493656.7.0.491759141743.issue4211@psf.upfronthosting.co.za> |
| 2008年10月31日 22:54:15 | brett.cannon | link | issue4211 messages |
| 2008年10月31日 22:54:14 | brett.cannon | create |
|