Message241818
| Author |
barry |
| Recipients |
barry, brett.cannon |
| Date |
2015年04月22日.17:50:52 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429725052.67.0.961207229221.issue24029@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
More rationale from the thread:
> The surprising part is that it also happens for explicit relative
> imports. I'm guessing that part was unintentional and simply not
> noticed when PEP 328 was implemented.
>
No, that must also have been intentional, because even when you use
relative import, the module you imported knows its full name, and that full
name is used as its key in sys.modules. If someone else uses absolute
import for the same module they should still get the same module object. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年04月22日 17:50:52 | barry | set | recipients:
+ barry, brett.cannon |
| 2015年04月22日 17:50:52 | barry | set | messageid: <1429725052.67.0.961207229221.issue24029@psf.upfronthosting.co.za> |
| 2015年04月22日 17:50:52 | barry | link | issue24029 messages |
| 2015年04月22日 17:50:52 | barry | create |
|