Hi, thanks for assistance.
Stefan Behnel wrote: > [email protected] wrote: >> As *all* strings in cython code get converted to bytes, nothing works out. > > Actuall, Python byte strings and unicode strings are equally well supported > in Cython, for both Py2 and Py3. Cython just uses (mainly) Py2.x syntax. > > >> I my case I have a c function like: >> >> void foo(char *) >> >> cdef c_foo "foo"(char *) >> >> >> cdef class A: >> def __init__(self,arg0): >> c_foo(arg0) > > Unless you are dealing with binary data, you should not do this. foo(char *) is expected to get an zero terminated string. What exactly, and whats is the correct way of doing it? MfG Markus _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
