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 | docs@python, eric.snow |
| Date | 2014年06月14日.19:58:12 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1402775893.22.0.955121317915.issue21760@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In the documentation for the inspect module, the module type is described with just 2 of its potential 7 attributes. The language reference[2] and importlib docs[3] both provide an accurate list of module attributes. Furthermore, the description for __file__ should be fixed. It should be clear that __file__ reflects the location from which the module was loaded, that location is not necessarily a filename, and the attribute may not exist if the module was not loaded from a specific location (e.g. builtin and frozen modules). The same goes for __cached__ [1] https://docs.python.org/dev/library/inspect.html#types-and-members [2] https://docs.python.org/3/reference/import.html#import-related-module-attributes [3] https://docs.python.org/3/library/importlib.html#importlib.machinery.ModuleSpec |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014年06月14日 19:58:13 | eric.snow | set | recipients: + eric.snow, docs@python |
| 2014年06月14日 19:58:13 | eric.snow | set | messageid: <1402775893.22.0.955121317915.issue21760@psf.upfronthosting.co.za> |
| 2014年06月14日 19:58:13 | eric.snow | link | issue21760 messages |
| 2014年06月14日 19:58:12 | eric.snow | create | |