| commit | 3e8d6cb1892377394e4b11819c33fbac728ea9e0 | [log] [tgz] |
|---|---|---|
| author | INADA Naoki <methane@users.noreply.github.com> | Tue Feb 21 23:57:25 2017 +0900 |
| committer | GitHub <noreply@github.com> | Tue Feb 21 23:57:25 2017 +0900 |
| tree | 3c19c9f5601f19fd201488aec5b1d16287839b3c | |
| parent | 3a9ac827c7c87dffc60c4200323948551bcb6662 [diff] |
bpo-29509: skip redundant intern (GH-197) PyObject_GetAttrString intern temporary key string. It's completely redudant.
diff --git a/Objects/object.c b/Objects/object.c index 5da6cff..40061b1 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -785,7 +785,7 @@ if (Py_TYPE(v)->tp_getattr != NULL) return (*Py_TYPE(v)->tp_getattr)(v, (char*)name); - w = PyUnicode_InternFromString(name); + w = PyUnicode_FromString(name); if (w == NULL) return NULL; res = PyObject_GetAttr(v, w);