mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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:
parent
0556501a81
commit
4a3dd2dcc2
4 changed files with 126 additions and 3 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue