summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-01-19 05:18:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-01-19 05:18:35 (GMT)
commit2c028492d46e058ceaf81c3ec3c806226bf39b0b (patch)
treee42b8e7846ff239b48a8dcde1d8e478951f6b3cd /Objects
parent3114d763fb0eb469dcae24b616c727303261b30f (diff)
parent9ad11544bfb80b7881e0d567e40ef2fa2da58f02 (diff)
downloadcpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.zip
cpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.tar.gz
cpython-2c028492d46e058ceaf81c3ec3c806226bf39b0b.tar.bz2
merge 3.5 (#25731)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index db15cf6..46fb27e 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -6791,7 +6791,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
sanity checks and constructing a new argument
list. Cut all that nonsense short -- this speeds
up instance creation tremendously. */
- specific = (void *)type->tp_new;
+ specific = (void *)((PyTypeObject *)PyCFunction_GET_SELF(descr))->tp_new;
/* XXX I'm not 100% sure that there isn't a hole
in this reasoning that requires additional
sanity checks. I'll buy the first person to