[Cython] Cannot coerce list to type 'list'
Robert Bradshaw
robertwb at math.washington.edu
Thu Dec 18 01:39:33 CET 2008
On Dec 17, 2008, at 4:25 PM, Muhammad Alkarouri wrote:
> On Dec 17, 2008, Robert Bradshaw wrote:
>
>> What is the definition of list in c_python? If it's a cdef extern
>> class of the actual python list, then this is a bug and should work.
>> Also, you might not need c_python anymore.
>
> Thanks, that does the trick.
> The __builtin__.list was cdef extern in the c_python.pxd (shown
> below), I simply commented it and the code worked fine.
> Is there a fault with how I have it written, or should I report it
> as a bug now?
I'm not sure what the best thing to do here is (certainly it could be
fixed to ignore these extern types that match), but there's no
advantage to declaring the empty dict and list types as Cython
understands those types natively now.
- Robert
More information about the Cython-dev
mailing list