[Python-Dev] ctypes is not an acceptable implementation strategy for modules in the standard library?

Xavier Morel catch-all at masklinn.net
Mon Nov 5 15:14:17 CET 2012

On 2012-11-05, at 10:32 , Ronald Oussoren wrote:
>> My arguments for ctypes:
>> 1. doesn't require compilation
>> 2. easier to maintain (no C/toolchain knowledge/ownership needed)
>> 3. pure Python is impossible to exploit (unlike pure C)
> That's not not quite true, python code that uses ctypes can still cause buffer overflows and the like

Such as segfaulting the interpreter. I seem to reliably segfault
everything every time I try to use ctypes.

More information about the Python-Dev mailing list