Intern the strings created in getattr() and setattr().
diff --git a/Objects/object.c b/Objects/object.c
index 0af31ba..fc1d086 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -335,7 +335,7 @@
{
if (v->ob_type->tp_getattro != NULL) {
object *w, *res;
- w = newstringobject(name);
+ w = PyString_InternFromString(name);
if (w == NULL)
return NULL;
res = (*v->ob_type->tp_getattro)(v, w);
@@ -375,7 +375,7 @@
if (v->ob_type->tp_setattro != NULL) {
object *s;
int res;
- s = newstringobject(name);
+ s = PyString_InternFromString(name);
if (s == NULL)
return -1;
res = (*v->ob_type->tp_setattro)(v, s, w);