Re: PEP 451 (ModuleSpec) round 3
Nick Coghlan <[email protected]>
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CADiSq7cBx8uS=f6SqE_E5s27w4-pckhkLHAVSSenr12wdq2eoA@mail.gmail.com> |
Just a general comment: spec and module mismatches have to be considered *normal*, and the module has to take precedence. Otherwise you risk breaking too much code. The spec is *not* authoritative in general. The only exception is that when __name__ ends with "__main__", pickle should be updated to look at the name on the spec instead. Even the attribute setting after create_module should respect custom settings provided by the loader. Cheers, Nick. _______________________________________________ Import-SIG mailing list [email protected] http://mail.python.org/mailman/listinfo/import-sig