Exception Handling (C - extending python)
Stefan Behnel
stefan_ml at behnel.de
Sun Oct 23 05:06:54 EDT 2011
Lee, 23.10.2011 06:09:
> Where does PyExc_TypeError (and alike) points to? I can see its
> declaration - PyAPI_DATA(PyObject *) PyExc_TypeError; - in pyerrors.h
> but I cannot figure out what it is its value, where it is
> initialized.
It gets initialised inside of the interpreter core and then points to a
Python object.
> Any help is greatly appreciated.
The question is: why do you ask? What exactly do you want to do?
If you ask a more targeted question, you will get an answer that will help
you further.
Stefan
More information about the Python-list
mailing list