Fix PR#7 comparisons of recursive objects

Note that comparisons of deeply nested objects can still dump core in
extreme cases.
This commit is contained in:
Jeremy Hylton 2000-04-14 19:13:24 +00:00
parent 0556501a81
commit 4a3dd2dcc2
4 changed files with 126 additions and 3 deletions

View file

@ -284,6 +284,9 @@ extern DL_IMPORT(int) PyNumber_CoerceEx Py_PROTO((PyObject **, PyObject **));
extern DL_IMPORT(int) Py_ReprEnter Py_PROTO((PyObject *));
extern DL_IMPORT(void) Py_ReprLeave Py_PROTO((PyObject *));
/* tstate dict key for PyObject_Compare helper */
extern PyObject *_PyCompareState_Key;
/* Flag bits for printing: */
#define Py_PRINT_RAW 1 /* No string quotes etc. */