mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
|
@ -149,6 +149,8 @@ Py_Initialize()
|
|||
/* Init Unicode implementation; relies on the codec registry */
|
||||
_PyUnicode_Init();
|
||||
|
||||
_PyCompareState_Key = PyString_InternFromString("cmp_state");
|
||||
|
||||
bimod = _PyBuiltin_Init_1();
|
||||
if (bimod == NULL)
|
||||
Py_FatalError("Py_Initialize: can't initialize __builtin__");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue