[Cython] cython doesn't compile cdef'd variables of type set?
Robert Bradshaw
robertwb at math.washington.edu
Wed Oct 1 23:29:32 CEST 2008
On Oct 1, 2008, at 2:25 PM, didier deshommes wrote:
> On Wed, Oct 1, 2008 at 5:17 PM, Robert Bradshaw
> <robertwb at math.washington.edu> wrote:
>>
>> You could look at how list and dict are handled at the bottom of
>>
>> http://hg.cython.org/cython-devel/file/c9f3badef047/Cython/Compiler/
>> Builtin.py
>
> Hi Robert,
> What is the meaning of lines like this:
> ("append", "OO", "i", "PyList_Append")
>
> I'm especially curious about the "OO" and "i" stuff.
"OO" means PyList_Append takes two arguments of type O = object. "i"
means the return value is an int (for error checking, never actually
revealed to Python).
> Is this the only code change needed to map these calls?
Yep, it's that easy now that we have support for this kind of thing.
Looking forward to a patch :).
- Robert
More information about the Cython-dev
mailing list