On Thursday, 5. November 2015 15:13:52 Michel Zou wrote: > inline char * str2charp_size(PyObject* pyObj, int * size) > { > char * v_ = 0; > #if PY_MAJOR_VERSION >= 3 > PyBytes_AsStringAndSize(pyObj, &v_, (Py_ssize_t*)size); > #else > PyString_AsStringAndSize(pyObj, &v_, (Py_ssize_t*)size); > #endif > return v_; > }
thanks, looking good! Patch committed with the above change. Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com