summaryrefslogtreecommitdiffstats
path: root/Include/traceback.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-07-18 14:21:06 (GMT)
committerGuido van Rossum <guido@python.org>1995-07-18 14:21:06 (GMT)
commit884afd654a79bcb836afcdb5c953a627fd45c4c7 (patch)
treeeb0d6c872c09cad854aa168829d9feda2a4df4ea /Include/traceback.h
parente15dee5e3cf863657f47974cb51721ef3cca2ff8 (diff)
downloadcpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.zip
cpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.tar.gz
cpython-884afd654a79bcb836afcdb5c953a627fd45c4c7.tar.bz2
keyword arguments and faster function calls
Diffstat (limited to 'Include/traceback.h')
-rw-r--r--Include/traceback.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/traceback.h b/Include/traceback.h
index c04f515..ad37dd9 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