[issue2135] Restructure import.c into PEP 302 importer objects

Brett Cannon report at bugs.python.org
Sat Feb 23 03:16:25 CET 2008


Brett Cannon added the comment:

On Fri, Feb 22, 2008 at 5:21 PM, Douglas Greiman <report at bugs.python.org> wrote:
>
>  Douglas Greiman added the comment:
>
>  Brett,
>
>  I wrote my patch thinking that the next step would be to rewrite
>  DirectoryImporter in Python.  If you're already working on that and
>  just want to skip straight from point A to point C and skip this point
>  B, I'm fine with that.  Basically, tell me if you want me to pursue
>  this further or drop it.

You can drop it if you want, but I just don't know how long it will
take for me to finish the bootstrap work (for instance I am having to
rewrite the warnings module in C). So there is a chance it might still
be useful, but I can't guarantee it.

>  Are you also reimplementing the code for
>  builtin and frozen modules in Python?
>

I use the imp module to handle the actual loading, but the importers
and loaders are all in Python. You can see the implementation in the
sandbox under import_in_py.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2135>
__________________________________


More information about the Python-bugs-list mailing list