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 | barry, brett.cannon, eric.snow, ncoghlan |
| Date | 2014年06月14日.20:33:24 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1402778004.82.0.418404996295.issue21761@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The language reference [1] says: Ultimately, the loader is what makes use of __file__ and/or __cached__ This implies that loaders should use __file__ and __cached__ when loading a module. Instead loaders are meant to implement exec_module() and use the spec that's passed in. The entire section should have a clear note that loaders are not meant to rely a module's import-related attributes. [1] https://docs.python.org/3/reference/import.html#__file__ [2] https://docs.python.org/3/reference/import.html#import-related-module-attributes |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014年06月14日 20:33:24 | eric.snow | set | recipients: + eric.snow, barry, brett.cannon, ncoghlan |
| 2014年06月14日 20:33:24 | eric.snow | set | messageid: <1402778004.82.0.418404996295.issue21761@psf.upfronthosting.co.za> |
| 2014年06月14日 20:33:24 | eric.snow | link | issue21761 messages |
| 2014年06月14日 20:33:24 | eric.snow | create | |