Re: PEP 420: Implicit Namespace Packages

"[email protected]" <[email protected]>
Newsgroups gmane.comp.python.import
Message-ID <CADrh4z+XCwAJmaV87Wmz2No8y44b=BHrA8DK88PtQVdtsPEJog@mail.gmail.com>
On Fri, May 4, 2012 at 7:34 AM, Barry Warsaw <[email protected]> wrote:
> It's also not true even today.  At our PEP 420 sprint we noticed importlib
> does something like this to create new modules:
>
>    >>> type(sys)('foo')
>
> That module isn't a built-in and doesn't have an __file__.  It also
> doesn't have an __loader__, but oh well.
>
> (BTW, Brett, that's pretty clever. :)
Too clever for Jython at them moment :) -- which leads me to ask:
Should I consider this a a feature of the sys module? It doesn't look
too hard to do, and I really want importlib to work when Jython starts
on Jython3 (I'm hoping to seriously start that this summer - Jython
2.7 is progressing well).

-Frank
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.