Re: PEP 420: Implicit Namespace Packages
PJ Eby <[email protected]>
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CALeMXf7yxrKnyM+MZVSDOVZwObLv2W=x18ynp=oq-mWcdUmEBA@mail.gmail.com> |
On May 4, 2012 10:34 AM, "Barry Warsaw" <[email protected]> wrote: > Specifically, my proposed elaboration on PEP 420 is this: > > * Explicitly leave the assignment of __file__ to the loader. > * Allow loaders to not set __file__ > * Add an optional API to loaders, module_repr() as defined above. +1 on all the above, plus getting rid of __file__ for namespace packages. Seems like an elegant solution to the problems involved, and allows DB or other importers to make their own attributes like __dsn__ or __url__, but still have a decent repr. _______________________________________________ Import-SIG mailing list [email protected] http://mail.python.org/mailman/listinfo/import-sig