It's a known bug:
http://trac.cython.org/cython_trac/ticket/61
http://trac.cython.org/cython_trac/ticket/177
http://trac.cython.org/cython_trac/ticket/340
There is no time frame for a fix.
Stefan
Right, closed now.
There's also this ticket which seems related:
http://trac.cython.org/cython_trac/ticket/180
Stefan
__getitem__ is neither a def nor a cdef method, it's a special method,
so already has faster (and fixed) calling semantics. One optimization
that I'd like to do is use the PySequence_* API if the second argument
is an integer type (perhaps this would need to be declared in the
.pxd).
- Robert
... with the obvious drawback of slowing down item access, especially in
Python 3.
http://trac.cython.org/cython_trac/ticket/636
Stefan
True, it would only work for classes that don't support slicing
(though it's not that hard to imagine detecting checking the index is
a slice and converting it to an integer otherwise--I'm not sure the
best way to handle that).
- Robert