Message162007
| Author |
brett.cannon |
| Recipients |
Aaron.Meurer, Arfrever, Ronan.Lamy, brett.cannon |
| Date |
2012年05月31日.15:30:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338478206.91.0.474793050629.issue14938@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I see what you mean about the discrepancy, but you don't need to complicate the constructor to get the desired result. If you have is_package() check if the module name ends in __init__ to skip the package check and just say False (e.g. only if the path ends in __init__ but the module name does not) then you will get your desired semantics out of is_package (since this is what find_loader() is doing). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月31日 15:30:07 | brett.cannon | set | recipients:
+ brett.cannon, Arfrever, Aaron.Meurer, Ronan.Lamy |
| 2012年05月31日 15:30:06 | brett.cannon | set | messageid: <1338478206.91.0.474793050629.issue14938@psf.upfronthosting.co.za> |
| 2012年05月31日 15:30:06 | brett.cannon | link | issue14938 messages |
| 2012年05月31日 15:30:06 | brett.cannon | create |
|