From: Guido van Rossum Date: Fri, 10 Apr 1998 22:32:24 +0000 (+0000) Subject: Add prototypes for Py_Repr{Enter,Leave}. X-Git-Tag: v1.5.1~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26d4ac30be9b17aa8fa6e553e2c19e3536d2340f;p=python Add prototypes for Py_Repr{Enter,Leave}. (Jeremy will hardly recognize his patch :-) --- diff --git a/Include/object.h b/Include/object.h index 18cca9f4d4..78a56d6796 100644 --- a/Include/object.h +++ b/Include/object.h @@ -276,6 +276,10 @@ extern int PyCallable_Check Py_PROTO((PyObject *)); extern int PyNumber_Coerce Py_PROTO((PyObject **, PyObject **)); extern int PyNumber_CoerceEx Py_PROTO((PyObject **, PyObject **)); +/* Helpers for printing recursive container types */ +extern int Py_ReprEnter Py_PROTO((PyObject *)); +extern void Py_ReprLeave Py_PROTO((PyObject *)); + /* Flag bits for printing: */ #define Py_PRINT_RAW 1 /* No string quotes etc. */