On Oct 1, 2008, at 2:25 PM, didier deshommes wrote:

> On Wed, Oct 1, 2008 at 5:17 PM, Robert Bradshaw
> <[EMAIL PROTECTED]> 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

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to