[Python-ideas] ctypes and extensions

Paul Colomiets paul at colomiets.name
Sun Aug 28 12:27:23 CEST 2011


Hi Jeremy?

On Sun, Aug 28, 2011 at 12:58 PM, Jeremy Sanders
<jeremy at jeremysanders.net> wrote:
> I was following the discussion on python-dev about ctypes not being suitable
> for the standard library for linking to C libraries, and extension modules
> not suitable for alternative implementations. Ctypes is fragile when it
> comes linking to libraries whose API might change giving no kind of error.
> Extension modules are too closely linked to cpython and reference counting.
>
> Why not have some sort of intermediate C layer to produce a library which
> can be immediatedly loaded by any python implementation?
> [.. snip ..]
> Any opinions?
>

So what's the problem with cython? It solves your problem well.

-- 
Paul



More information about the Python-ideas mailing list