Re: PEP 420 issue: extend_path

Barry Warsaw <[email protected]>
Newsgroups gmane.comp.python.import
Organization The Organization of Unorganized Woozalists
Message-ID <20120508172314.0a8006a0@resist>
On May 08, 2012, at 08:16 PM, Eric V. Smith wrote:

>In the pep-420 branch I've checked in code where find_loader() returns
>(loader, list_of_portions). I've implemented it for the FileFinder and
>zipimport.
>
>loader can be None or a loader object.
>list_of_portions can be an empty list, or a list of strings.
>
>To indicate "no loader or portions found", return (None, []).
>
>If loader is not None, list_of_portions is ignored.
>
>I'm pretty happy with this API. Comments welcome.

Me too.  Really nicely done.

-Barry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.