diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-05-28 21:03:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-05-28 21:03:41 (GMT) |
commit | 6ee36a5a8cf7aff3a2b5f3ab50bb46a31c377750 (patch) | |
tree | 78d798069b6be885c8d7e6dd915d5f5332e7121f | |
parent | 253c0bff9aaabaf455534d65eeaefee6d7967ef9 (diff) | |
download | cpython-6ee36a5a8cf7aff3a2b5f3ab50bb46a31c377750.zip cpython-6ee36a5a8cf7aff3a2b5f3ab50bb46a31c377750.tar.gz cpython-6ee36a5a8cf7aff3a2b5f3ab50bb46a31c377750.tar.bz2 |
Backed out changeset e7062dd9085e (#25731)
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 7015667..d78f298 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 |