[Cython] cdef list variable raises exception on SetItem

Kurt Smith kwmsmith at gmail.com
Fri Apr 17 06:54:29 CEST 2009


On Thu, Apr 16, 2009 at 10:28 PM, Kurt Smith <kwmsmith at gmail.com> wrote:
> Hi,
>
> The first function below "in_range" works fine (the last line
> generates a call to PyObject_SetItem) but the "out_of_range" function
> does not.  The last line in it generates a call to PyList_SetItem as
> it should, but the 'ob' PyObject is not converted to a Py_ssize_t.
>

See

http://trac.cython.org/cython_trac/ticket/284


More information about the Cython-dev mailing list