[Cython] Call for help: official C-API 2 to 3 porting guide
Robert Bradshaw
robertwb at math.washington.edu
Tue Sep 30 02:41:50 CEST 2008
On Sep 27, 2008, at 6:13 AM, Christian Heimes wrote:
> Hello fellow developers!
>
> Benjamin is working on a C-API 2 to 3 porting guide for the official
> Python docs. I know that you - the Cython developers - have spent lots
> of time on making Cython compatible with 2.3+ as well as 3.0. Could
> you
> please assist Benjamin with his task and give him some hints? We are
> especially interested in a list of gotchas and tricks how to write
> cross
> version compatible C code.
>
> Thanks in advance!
Stefan and Lisandro did most of the work on this front, but much of
what we did was use a lot of #defines to point things to the right
places, and write (inline) wrapper functions that wrapped the API
where things differed.
While it works very well for our target (machine generated C) I don't
know how applicable it would be to his domain.
- Robert
More information about the Cython-dev
mailing list