[Cython] cython doesn't compile cdef'd variables of type set?

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 3 03:37:14 CEST 2008


Lisandro Dalcin wrote:
> On Thu, Oct 2, 2008 at 1:06 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>> But "r" is conceptually
>> more correct, and it may become important in a future
>> version of Pyrex.
> 
> OK, good to know! Robert, should we fix this in Cython?

It occurred to me while investigating this that there's
a slight difference between the optimised version of
list.append et al and the Python version: the optimised
version will return 0 if you use it in a context where
the return value is used, vs. None for the Python
version.

Not sure if anyone will care enough about that to be
worth fixing it, though.

-- 
Greg


More information about the Cython-dev mailing list