Message162007
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). |
|
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 | |
|