]> granicus.if.org Git - python/commitdiff
Backed out changeset e7062dd9085e (#25731)
authorBenjamin Peterson <benjamin@python.org>
Sat, 28 May 2016 21:03:41 +0000 (14:03 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sat, 28 May 2016 21:03:41 +0000 (14:03 -0700)
Objects/typeobject.c

index 70156675ad77b6de55779189c045e18ca96390db..d78f2983759326680e531b18f68011b200b3ad79 100644 (file)
@@ -6272,7 +6272,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 *)((PyTypeObject *)PyCFunction_GET_SELF(descr))->tp_new;
+            specific = (void *)type->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