[Cython] Cannot coerce list to type 'list'
Muhammad Alkarouri
malkarouri at gmail.com
Thu Dec 18 00:54:49 CET 2008
Hi everyone,
I have code that used to work in Cython 0.9.8.1.1 but doesn't work in
the current version (0.10.3).
I would like to know if this is a bug or is it something wrong in my
code, and how to correct it either way. Can you please help me? The
code and error are:
from c_numpy cimport import_array, ndarray
from c_python cimport list
...
cdef class Scope:
"""A multidimensional interval"""
cdef readonly ndarray centre
cdef Scope parent
cdef int height
cdef list refinements
def __init__(self, ndarray centre, Scope parent, int height):
self.centre = centre
self.parent = parent
self.height = height
self.refinements = []
^
Cannot coerce list to type 'list'
Best Regards,
Muhammad Alkarouri
More information about the Cython-dev
mailing list