[Python-Dev] Ctypes and the stdlib (was Re: LZMA compression support in 3.3)

Stefan Behnel stefan_ml at behnel.de
Tue Aug 30 10:57:22 CEST 2011


"Martin v. Löwis", 30.08.2011 10:46:
>> You might be reading more into that statement than I meant.
>> You have to supply Pyrex/Cython versions of the C declarations,
>> either hand-written or generated by a tool. But you write them
>> based on the advertised C API -- you don't have to manually
>> expand macros, work out the low-level layout of structs, or
>> anything like that (as you often have to do when using ctypes).
>
> I can understand how that works when building a CPython extension.
> But what about creating Jython/IronPython modules with Cython?
> At what point get the header files considered there?

I had written a bit about this here:

http://thread.gmane.org/gmane.comp.python.devel/126340/focus=126419

Stefan



More information about the Python-Dev mailing list