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

@ -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__");