diff options
author | Guido van Rossum <guido@python.org> | 1995-07-18 14:21:06 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-18 14:21:06 +0000 |
commit | 4f95c85a0d83975f52a71589725945abe3319ca9 (patch) | |
tree | 7e2239eb181e63133ffbde3f024fb0dddb91d0c2 /Include/traceback.h | |
parent | 9784fba00796715418e8c6c0733e17c932d42e0b (diff) | |
download | cpython-4f95c85a0d83975f52a71589725945abe3319ca9.tar.gz |
keyword arguments and faster function calls
Diffstat (limited to 'Include/traceback.h')
-rw-r--r-- | Include/traceback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/traceback.h b/Include/traceback.h index c04f515c54..ad37dd9cc8 100644 --- a/Include/traceback.h +++ b/Include/traceback.h @@ -37,6 +37,10 @@ PyObject *PyTraceBack_Fetch Py_PROTO((void)); int PyTraceBack_Store Py_PROTO((PyObject *)); int PyTraceBack_Print Py_PROTO((PyObject *, PyObject *)); +/* Reveale traceback type so we can typecheck traceback objects */ +extern PyTypeObject PyTraceback_Type; +#define PyTraceback_Check(v) ((v)->ob_type == &PyTraceback_Type) + #ifdef __cplusplus } #endif |