summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-04-14 19:13:24 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-04-14 19:13:24 (GMT)
commit4a3dd2dcc2fae12b6736822731848c557b80d0e3 (patch)
tree14c6c5f32289f00d0328daff5a23ea50c06f23e0 /Python
parent0556501a810467fcb18f0a0f312b475dff27d20b (diff)
downloadcpython-4a3dd2dcc2fae12b6736822731848c557b80d0e3.zip
cpython-4a3dd2dcc2fae12b6736822731848c557b80d0e3.tar.gz
cpython-4a3dd2dcc2fae12b6736822731848c557b80d0e3.tar.bz2
Fix PR#7 comparisons of recursive objects
Note that comparisons of deeply nested objects can still dump core in extreme cases.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index eb93d47..0ae15fa 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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__");