[Python-Dev] Let's change to C API!

Antoine Pitrou solipsis at pitrou.net
Tue Jul 31 03:45:28 EDT 2018


On Tue, 31 Jul 2018 09:27:03 +0200
Jeroen Demeyer <J.Demeyer at UGent.be> wrote:
> On 2018-07-31 08:58, Antoine Pitrou wrote:
> > I think Stefan is right that we
> > should push people towards Cython and alternatives, rather than direct
> > use of the C API (which people often fail to use correctly, in my
> > experience).  
> 
> I know this probably isn't the correct place to bring it up, but I'm 
> sure that CPython itself could benefit from using Cython. For example, 
> most of the C extensions in Modules/ could be written in Cython.

We don't depend on any third-party Python modules.  Adding a Cython
dependency for CPython development would be a tough sell.

Also, a C extension can be built-in (linked statically into the
interpreter), which I think would be hard to do with Cython.

Regards

Antoine.




More information about the Python-Dev mailing list