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! -- http://mail.python.org/mailman/listinfo/python-list