Re: PEP 420: Implicit Namespace Packages
| 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