| Store | Cart

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

From: Sturla Molden <stu...@molden.no>
Mon, 05 Nov 2012 15:47:05 +0100
On 05.11.2012 15:14, Xavier Morel wrote:

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

You can do that with C extensions too, by the way. Apart from that, 
dependency on ABI is more annoying to maintain across platforms than 
dependency on API. Function calls with ctypes are also very slow. For C 
extensions in the stdlib, Cython might be a better choice then ctypes.

ctypes might be a good choice if you are to use a DLL on your own 
computer. Because then you only have one ABI to worry about. Not so for 
Python's standard library.

Python-Dev mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
anatoly techtonik Nov 05, 2012 07:31 am
Ronald Oussoren Nov 05, 2012 09:32 am
Xavier Morel Nov 05, 2012 02:14 pm
Sturla Molden Nov 05, 2012 02:47 pm
Victor Stinner Nov 05, 2012 11:36 am
Trent Nelson Nov 06, 2012 02:35 pm
R. David Murray Nov 05, 2012 11:49 am
Maciej Fijalkowski Nov 05, 2012 01:38 pm
Messages in this thread