Re: Two questions.

Stefan Behnel <[email protected]> Thu, 07 Aug 2008 14:38:55 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
Hi,

Martin Field wrote:
> 2. More generally, I am interested in trying the first stable release 
> version of Python 3
>     when it arrives (shortly). Naively I expect that there have been 
> quite a few changes
>     in the C API between 2.5 and 3 so that Pyrex will have to be updated 
> as well. Is there
>     a time line for doing this? Would it be better to pass via 2.6 first?

It would be better to use Cython.

    http://cython.org/

Unless you use unsupported C-API functions in your own code, the C code
generated by Cython will work on Py2.6 and compile (and mostly work) on 3.0
beta. There are currently issues with exception handling and Python frames in
Py3 beta2, so it may or may not work reliably for you - that's being worked
on. But it sure is enough for initial testing.

Stefan