Message204646
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. |
|
Date |
User |
Action |
Args |
2013-11-28 07:55:30 | eric.snow | set | recipients:
+ eric.snow |
2013-11-28 07:55:30 | eric.snow | set | messageid: <1385625330.82.0.952141123031.issue19821@psf.upfronthosting.co.za> |
2013-11-28 07:55:30 | eric.snow | link | issue19821 messages |
2013-11-28 07:55:30 | eric.snow | create | |
|