mirror of
https://github.com/python/cpython.git
synced 2026-06-23 03:23:38 -04: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:
@@ -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__");
|
||||
|
||||
Reference in New Issue
Block a user