Message204646
| 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: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 |
|