From: Benjamin Peterson Date: Sat, 28 May 2016 21:03:41 +0000 (-0700) Subject: Backed out changeset e7062dd9085e (#25731) X-Git-Tag: v2.7.12rc1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ee36a5a8cf7aff3a2b5f3ab50bb46a31c377750;p=thirdparty%2FPython%2Fcpython.git Backed out changeset e7062dd9085e (#25731) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 70156675ad77..d78f29837593 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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