[Import-SIG] PEP 420: Implicit Namespace Packages

fwierzbicki at gmail.com fwierzbicki at gmail.com
Fri May 4 21:44:29 CEST 2012


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 <brett at python.org> 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


More information about the Import-SIG mailing list