[Python-Dev] libffi embedded in CPython

Paul Moore p.f.moore at gmail.com
Wed Mar 11 23:03:33 CET 2015


On 11 March 2015 at 21:45, Maciej Fijalkowski <fijall at gmail.com> wrote:
>> Is it possible to use cffi without a C compiler/headers as easily than
>> ctypes?
>
> yes, it has two modes, one that does that and the other that does
> extra safety at the cost of a C compiler

So if someone were to propose a practical approach to including cffi
into the stdlib, *and* assisting the many Windows projects using
ctypes for access to the Windows API [1], then there may be a
reasonable argument for deprecating ctypes. But nobody seems to be
doing that, rather the suggestion appears to be just to deprecate a
widely used part of the stdlib offering no migration path :-(

Paul

[1] There may be Unix users of ctypes, but AFAIK, the vast majority of
use cases are on Windows.


More information about the Python-Dev mailing list