Verifying compatibility in compiling extension types, and using them with cdef

A reply with what I can take from your message.

  1. The use of Python objects in Cython is possible but limited as soon as you cdef some parts. Try by “un”-cdefing the dict.
  2. The error you have suggests that you have an expression that is x[y] where x is a tuple and y an int. In principle it should work all right (indexing a tuple with an int shoud be ok). So you can look at square brackets in the Cython to find out where it comes from.
  3. You mentioned having removed the pxd file. Have you then move the full declaration of the extension class/other type definitions to the pyx file?

Leave a Comment