Re: PEP 420: Implicit Namespace Packages

"[email protected]" <[email protected]>
Newsgroups gmane.comp.python.import
Message-ID <CADrh4zL0oQ2-vH=H4Q3fsmtCHjtVLnNyTEoMSxUwF4f6tKM3TQ@mail.gmail.com>
Sorry for the dup Brett - I still mess up on the new gmail interface
sometimes :(

On Fri, May 4, 2012 at 10:32 AM, Brett Cannon <[email protected]> wrote:
> OK, so of the CPython built-in modules that importlib uses (sys, _imp,
> _warnings, _io, marshal, builtins, posix/nt), which are an actual module in
> Jython?
I'll start with the bad:

builtins would be hard to turn into a module - however __builtin__ is
a module and works well.
nt is not likely to get implemented, we pretend nt is a posix with missing bits.

The ok:
posix is not a currently a true module, but can probably be turned
into one without too much trouble -- I will need to investigate.
_imp is not exposed as a module, but I think this will be a necessary
and acceptable step to integrate with importlib (and I don't think it
should be too hard given the benefits).

The good:
marshal and _io are already true modules.
_warnings will be when I get around to implementing it - probably next
week :) -- if I run out of time it may end up just being the same as
the python version (but that will still make it a true module).

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