[pypy-commit] pypy default: go via the space to benefit from the annspecialcase

cfbolz pypy.commits at gmail.com
Fri Mar 25 04:03:55 EDT 2016


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r83329:336e2da610d5
Date: 2016-03-25 09:03 +0100
http://bitbucket.org/pypy/pypy/changeset/336e2da610d5/

Log:	go via the space to benefit from the annspecialcase

diff --git a/pypy/objspace/std/objectobject.py b/pypy/objspace/std/objectobject.py
--- a/pypy/objspace/std/objectobject.py
+++ b/pypy/objspace/std/objectobject.py
@@ -110,7 +110,7 @@
 def descr__init__(space, w_obj, __args__):
     # don't allow arguments unless __new__ is overridden
     w_type = space.type(w_obj)
-    w_parent_new, _ = w_type.lookup_where('__new__')
+    w_parent_new, _ = space.lookup_in_type_where(w_type, '__new__')
     if w_parent_new is space.w_object:
         try:
             __args__.fixedunpack(0)


More information about the pypy-commit mailing list