Author: Carl Friedrich Bolz <[email protected]>
Branch: guard-compatible
Changeset: r83432:7fef35dc1817
Date: 2016-03-30 09:30 +0200
http://bitbucket.org/pypy/pypy/changeset/7fef35dc1817/

Log:    can use the cached version inside the elidable_compatible function

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -322,9 +322,7 @@
         # own __getattribute__
         if version is None:
             return False
-        w_type = self.terminator.w_cls
-        w_descr = self._type_lookup_pure('__getattribute__')
-        return w_descr is object_getattribute(self.space)
+        return w_type.has_object_getattribute()
 
     def _type_lookup(self, name):
         if not self._type_safe_to_do_getattr():
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to