[Python-Dev] importlib is now bootstrapped (and what that means)

Antoine Pitrou solipsis at pitrou.net
Tue Apr 17 19:39:01 CEST 2012


On Tue, 17 Apr 2012 11:41:32 -0400
Brett Cannon <brett at python.org> wrote:
> 
> Actually Cython would help with a subtle maintenance burden of maintaining
> *any* C code for import. Right now,
> Python/import.c:PyImport_ImportModuleLevelObject() is an accelerated C
> version of importlib.__import__() through checking sys.modules, after which
> it calls into the Python code. Cython would do away with that C
> acceleration code (which I have already had to modify once and Antoine
> found a couple refleaks in).

Would it? That's assuming Cython would be smart enough to do the
required optimizations.

Regards

Antoine.




More information about the Python-Dev mailing list