[Python-ideas] discouraging direct use of the C-API

Caleb Hattingh caleb.hattingh at gmail.com
Thu May 7 11:01:59 CEST 2015


> On 7 May 2015, at 6:54 pm, Stefan Krah <stefan at bytereef.org> wrote:
> 
> Eric Snow <ericsnowcurrently at ...> writes:
>> A big blocker to making certain sweeping changes to CPython (e.g.
>> ref-counting) is compatibility with the vast body of C extension
>> modules out there that use the C-API.  While there are certainly
>> drastic long-term solutions to that problem, there is one thing we can
>> do in the short-term that would at least get the ball rolling.  We can
>> put a big red note at the top of every page of the C-API docs that
>> encourages folks to either use CFFI or Cython.
> 
> -1. CFFI is much slower than using the C-API directly.

I am quite interested in this; do you happen have a link to a case study/gist/repo where this has been measured? Even if you can remember people’s names involved or something similar, I could google it myself.

Kind regards
Caleb


More information about the Python-ideas mailing list