Re: PEP 420: Implicit Namespace Packages
Eric Snow <[email protected]>
| Newsgroups | gmane.comp.python.import |
|---|---|
| Message-ID | <CALFfu7CpPWEanuyD8WfobQCitB_qz=FX08XjiL_0L9WT+1X28w@mail.gmail.com> |
On Sat, Apr 21, 2012 at 11:06 AM, PJ Eby <[email protected]> wrote: > Btw, was there ever an explicit rejection of the "namespace package __path__ > is an auto-updating iterable instead of a list" approach, or did it even > come up in the consensus discussion? Pretty sure it didn't come up, but it sounds like Eric Smith has considered it. PEP 420 currently has this to say: "There is no mechanism to automatically recompute the __path__ if sys.path is altered after a namespace package has already been created. However, existing namespace utilities (like pkgutil.extend_path) can be used to update them explicitly if desired." [1] -eric [1] http://www.python.org/dev/peps/pep-0420/#id9