summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-04-14 19:13:24 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2000-04-14 19:13:24 +0000
commitc21165a2532ad0703bb5d5c08cd4d86a2abf608a (patch)
treefeb295416439b9b9e9a1fa1707cfbdcda6abd8ee /Python/pythonrun.c
parent78a3b10957bf13dfcc8b0b63750fb33d5bab7d82 (diff)
downloadcpython-c21165a2532ad0703bb5d5c08cd4d86a2abf608a.tar.gz
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/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index eb93d47ebe..0ae15fafa2 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__");