From: Benjamin Peterson Date: Wed, 17 Aug 2016 06:37:33 +0000 (-0700) Subject: merge 3.4 (#27783) X-Git-Tag: v3.6.0b1~695^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6423429325f4f2309892f530417bc9737268be38;p=thirdparty%2FPython%2Fcpython.git merge 3.4 (#27783) --- 6423429325f4f2309892f530417bc9737268be38 diff --cc Modules/_operator.c index eb4f3a34edbf,f29476998027..dfff1d2faa14 --- a/Modules/_operator.c +++ b/Modules/_operator.c @@@ -951,15 -814,8 +951,9 @@@ methodcaller_new(PyTypeObject *type, Py if (mc == NULL) return NULL; - newargs = PyTuple_GetSlice(args, 1, PyTuple_GET_SIZE(args)); - if (newargs == NULL) { - Py_DECREF(mc); - return NULL; - } - mc->args = newargs; - + name = PyTuple_GET_ITEM(args, 0); Py_INCREF(name); + PyUnicode_InternInPlace(&name); mc->name = name; Py_XINCREF(kwds);