[Python-Dev] Convert Py_Buffer to Py_UNICODE

2011-05-02 Thread Sijin Joseph
Hi - I am working on a patch where I have an argument that can either be a unicode string or binary data, I parse the argument using the PyArg_ParseTuple method using the s* format specification and get a Py_Buffer. I now need to convert this Py_Buffer object to a Py_Unicode and pass it into a

Re: [Python-Dev] Convert Py_Buffer to Py_UNICODE

2011-05-02 Thread M.-A. Lemburg
Sijin Joseph wrote: Hi - I am working on a patch where I have an argument that can either be a unicode string or binary data, I parse the argument using the PyArg_ParseTuple method using the s* format specification and get a Py_Buffer. I now need to convert this Py_Buffer object to a