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 eric.snow
Recipients eric.snow
Date 2013-11-28.07:55:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385625330.82.0.952141123031.issue19821@psf.upfronthosting.co.za>
In-reply-to
Content
pydoc.ispackage() is a best-effort guess at whether or not a path is the location of a package.  However, it uses hard-coded suffixes when matching file names, which can miss files (e.g. extension modules and sourceless packages on Windows).  It should probably use suffixes defined in importlib.util, as they're used elsewhere in pydoc.  The function also does not comprehend namespace packages, but I'm not sure that's worth worrying about.

FWIW, it isn't clear to me what is using pydoc.ispackage().  It may not be used in the stdlib at all.
History
Date User Action Args
2013-11-28 07:55:30eric.snowsetrecipients: + eric.snow
2013-11-28 07:55:30eric.snowsetmessageid: <1385625330.82.0.952141123031.issue19821@psf.upfronthosting.co.za>
2013-11-28 07:55:30eric.snowlinkissue19821 messages
2013-11-28 07:55:30eric.snowcreate