where is the PyString_AsString in Python 3.0?

BigHand heweiwei at gmail.com
Fri Mar 6 12:53:47 CET 2009

I know that there is no PyString_AsString in Python3.0,
could you guys give me instruction about how can I do with the
following ?

PyObject *exc_type = NULL, *exc_value = NULL, *exc_tb = NULL;
PyErr_Fetch(&exc_type, &exc_value, &exc_tb);

how do I transfer the exc_type in a char* ?

thanks in advance!.


More information about the Python-list mailing list