[Cython] GCC, warning ‘__Pyx_Print’ defined but not used (Python 2.X)

Robert Bradshaw robertwb at math.washington.edu
Fri Mar 6 21:29:33 CET 2009


On Mar 6, 2009, at 12:20 PM, Lisandro Dalcin wrote:

> On Fri, Mar 6, 2009 at 6:11 PM, Robert Bradshaw
> <robertwb at math.washington.edu> wrote:
>>
>> The whole point of PrintOne was to avoid the overhead of calling
>> Print.
>
> Robert, I believe some times we complicate implementations too much
> for the sake of optimization... :-)

This was motivated by some code where printing was the dominant step  
in the runtime. Unfortunately, PySys_GetObject((char *)"stdout")  
(which must be called every time) still takes some time.

- Robert



More information about the Cython-dev mailing list