[Tutor] Help with returning a list object from a C extension.

Laura Creighton lac at openend.se
Sat Nov 28 07:29:11 EST 2015


In a message of Sat, 28 Nov 2015 12:22:12 +0000, Alan Gauld writes:
>On 28/11/15 06:04, James Oren wrote:
>
>> I'm trying to learn how to use C to extend my code, and have already worked
>> out how to use ctypes. I'm now trying to learn the full C extension module
>> approach with Python.h and have worked through the Python doc and a couple
>> other examples. 
>
>OK, This is probably a bit more advanced than the tutor list scope. If
>you are doing that level of coding you should probably promote yourself
>to the main Python list.
>
>That having been said I'm sure we have folks here who can answer the
>question, it's just that there are a lot more of them on the main list.
>
>Also I think there is a specific list for writing C extensions, they may
>be an even better choice.
>
>It's the capi-sig (as in C API SIG)
>
>https://mail.python.org/mailman/listinfo/capi-sig
>
>-- 
>Alan G

Most people I know have abandoned ctypes.  They are using cffi instead.
http://cffi.readthedocs.org/en/latest/
and they discuss it here
https://groups.google.com/forum/#!forum/python-cffi

Laura


More information about the Tutor mailing list