[Python-ideas] PEP 451 (import API refactoring) and C extension loading

Stefan Behnel stefan_ml at behnel.de
Sat Nov 2 17:44:42 CET 2013


Nick Coghlan, 02.11.2013 16:53:
> the PEP 451 refactoring makes it far
> more feasible to experiment with alternative C extension loading
> techniques through cffi

That's a funny idea. Doesn't sound completely infeasible at first sight,
cffi is all about shared library loading.


> so I'd like to postpone actually changing the
> default extension loading system to Python 3.5. The idea of adding
> cffi itself to the standard library has been discussed, in which case
> we might even be able to move all of that ugly extension management
> code out of C and into Python permanently, rather than just as part of
> third party experiments.

cffi itself would then have to be statically linked in, obviously. And be
available on all platforms that CPython currently supports.

Stefan




More information about the Python-ideas mailing list