Don't intern the key string for getitem and delitem.
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 66cec0c..3362655 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -1011,7 +1011,6 @@
kv = PyString_FromString(key);
if (kv == NULL)
return NULL;
- PyString_InternInPlace(&kv);
rv = PyDict_GetItem(v, kv);
Py_DECREF(kv);
return rv;
@@ -1028,7 +1027,7 @@
kv = PyString_FromString(key);
if (kv == NULL)
return -1;
- PyString_InternInPlace(&kv);
+ PyString_InternInPlace(&kv); /* XXX Should we really? */
err = PyDict_SetItem(v, kv, item);
Py_DECREF(kv);
return err;
@@ -1044,7 +1043,6 @@
kv = PyString_FromString(key);
if (kv == NULL)
return -1;
- PyString_InternInPlace(&kv);
err = PyDict_DelItem(v, kv);
Py_DECREF(kv);
return err;