Robert Bradshaw wrote:
> On Jul 6, 2009, at 11:45 AM, Dag Sverre Seljebotn wrote:

>>cdef extern borrowed object PyList_GET_ITEM(object, Py_ssize_t)
>>cdef extern void PyList_SET_ITEM(object, Py_ssize_t, borrowed object)

For parameters, I'd use 'stolen' instead of 'borrowed':

   cdef extern borrowed object PyList_GET_ITEM(object, Py_ssize_t)
   cdef extern void PyList_SET_ITEM(object, Py_ssize_t, stolen object)

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

Reply via email to