BigHand wrote: > 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* ?
Are you sure you want the exc_type and not the exc_value? The only major thing I'd do with the type of an exception is to let Python check for it using PyErr_ExceptionMatches(). Stefan -- http://mail.python.org/mailman/listinfo/python-list