[Cython] Potential bug: hole in "C <-> Python" conversion
Stefan Behnel
stefan_ml at behnel.de
Fri Jun 29 14:02:29 CEST 2012
Stefan Behnel, 29.06.2012 13:07:
> Dieter Maurer, 29.06.2012 12:18:
>> I need "const unsigned char*" and "const xmlChar *"
>> (where "xmlChar" is defined as "unsigned char").
>
> Ah, right, libxml2 - an excellent example. lxml is still suffering from the
> decision of its initial author to ignore C compiler warnings ("for now")
> and use plain char* instead. Lesson learned: DON'T DO THAT!
I added a doc section about using "const" with "char*".
https://sage.math.washington.edu:8091/hudson/job/cython-docs/doclinks/1/src/tutorial/strings.html#dealing-with-const
Stefan
More information about the cython-devel
mailing list