This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:07brett.cannonsetrecipients: + brett.cannon, Arfrever, Aaron.Meurer, Ronan.Lamy
2012-05-31 15:30:06brett.cannonsetmessageid: <1338478206.91.0.474793050629.issue14938@psf.upfronthosting.co.za>
2012-05-31 15:30:06brett.cannonlinkissue14938 messages
2012-05-31 15:30:06brett.cannoncreate