(original) (raw)
changeset: 101549:3ff84a3eeb6b branch: 2.7 parent: 101542:184dfef08a93 user: Benjamin Peterson benjamin@python.org date: Sat May 28 14:03:41 2016 -0700 files: Objects/typeobject.c description: Backed out changeset e7062dd9085e (#25731) diff -r 184dfef08a93 -r 3ff84a3eeb6b Objects/typeobject.c --- a/Objects/typeobject.c Sat May 28 19:24:14 2016 +0000 +++ b/Objects/typeobject.c Sat May 28 14:03:41 2016 -0700 @@ -6272,7 +6272,7 @@ 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 /benjamin@python.org