[Python-checkins] cpython (2.7): Backed out changeset e7062dd9085e (#25731)

benjamin.peterson python-checkins at python.org
Sat May 28 17:08:15 EDT 2016


https://hg.python.org/cpython/rev/3ff84a3eeb6b
changeset:   101549:3ff84a3eeb6b
branch:      2.7
parent:      101542:184dfef08a93
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat May 28 14:03:41 2016 -0700
summary:
  Backed out changeset e7062dd9085e (#25731)

files:
  Objects/typeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list