[Python-Dev] importlib is now bootstrapped (and what that means)
brett at python.org
Tue Apr 17 21:52:43 CEST 2012
On Tue, Apr 17, 2012 at 13:39, Antoine Pitrou <solipsis at pitrou.net> wrote:
> 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
> > *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
> > 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.
Yes, it is an assumption I'm making. I also assume we wouldn't make a
change like this w/o taking the time to run importlib through Cython and
seeing how the performance numbers come out.
> Python-Dev mailing list
> Python-Dev at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev