[Cython] cython-devel-py3: __future__ in Future.py
Stefan Behnel
stefan_ml at behnel.de
Fri May 16 11:31:22 CEST 2008
Hi,
Dag Sverre Seljebotn wrote:
>> 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...
>
> I'm probably missing something. But it appears that one could simply
> provide an implementation of the "print" function for Py2 (as verbatim C
> code pasted in) with the same signature and call it in the same way...
In any case, that would be a rewrite of the current implementation. Also, I
don't think the Py2 version would work (not having looked at it) with the new
I/O system.
Stefan
More information about the Cython-dev
mailing list