where is the PyString_AsString in Python 3.0?

BigHand heweiwei at gmail.com
Fri Mar 6 06:53:47 EST 2009


Guys:
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!.

B.R.
BH.



More information about the Python-list mailing list