What's the reverse of Py_BuildValue("u#" ?
sndive at gmail.com
sndive at gmail.com
Tue Jan 23 21:22:58 EST 2007
How could I get the pointer to and the length of ucs2 array out of a
PyObject representing
a string? Something that works whether PyObject string is in unicode or
not.
Also could I replace a sequence
if(PyBool_Check(obj)) {
...
}
if(PyString_Check(obj)) { // would this be true for any string
type?
...
}
if(PyFloat_Check(obj)) {
...
with a switch?
Thank you!
More information about the Python-list
mailing list