[Cython] cython-devel-py3: __future__ in Future.py

Stefan Behnel stefan_ml at behnel.de
Fri May 16 18:22:10 CEST 2008


Hi,

Stefan Behnel wrote:
> I'm planning to merge the changes ASAP, but I'd like to fix the "print"
> statement for Py3 first, as there are currently a lot of test cases that fail
> because of that, so this may actually hide real bugs.
> 
> BTW, in Py3, "print" will simply call the print function. The tricky thing is
> to generate the cleanup code correctly for the two code branches that the C
> preprocessor selects in Py2 and Py3...

This is implemented now. The remaining tests that fail under Py3 are all due
to byte literals being used where text would be appropriate for printing. I'll
continue to fix those, and if there are no objections, I will merge the
changes back into cython-devel tomorrow.

This is a good time to test your code with the cython-devel-py3 branch. :)

Stefan


More information about the Cython-dev mailing list