Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26d4ac3

Browse files
committed
Add prototypes for Py_Repr{Enter,Leave}.
(Jeremy will hardly recognize his patch :-)
1 parent 730806d commit 26d4ac3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/object.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ extern int PyCallable_Check Py_PROTO((PyObject *));
276276
extern int PyNumber_Coerce Py_PROTO((PyObject **, PyObject **));
277277
extern int PyNumber_CoerceEx Py_PROTO((PyObject **, PyObject **));
278278

279+
/* Helpers for printing recursive container types */
280+
extern int Py_ReprEnter Py_PROTO((PyObject *));
281+
extern void Py_ReprLeave Py_PROTO((PyObject *));
282+
279283
/* Flag bits for printing: */
280284
#define Py_PRINT_RAW 1 /* No string quotes etc. */
281285

0 commit comments

Comments
 (0)