S
sndive
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!
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!