I have

cdef extern from *:
        ctypedef char const_unsigned_char "const unsigned char"

cdef const_unsigned_char *c_data = data

leads to "Cannot convert Python object to 'const_unsigned_char *'"
while "cdef char *c_data = data" works.

Should the "ctypedef char const_unsigned_char" not ensure
that "char" and "const_unsigned_char" are used as synonyms?


--
Dieter
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to