Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r63690:ec1b02874f96
Date: 2013-04-27 13:41 +0200
http://bitbucket.org/pypy/pypy/changeset/ec1b02874f96/

Log:    can't use lookup() here, must use _lookup(): see test_methodcache

diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -1038,7 +1038,8 @@
     if mro_w is None:
         mro_w = w_self.compute_default_mro()[:]
     w_self.mro_w = mro_w
-    w_self.has_del = (w_self.lookup("__del__") is not None)
+    # can't use lookup() here, must use _lookup(): see test_methodcache
+    w_self.has_del = (w_self._lookup("__del__") is not None)
 
 def validate_custom_mro(space, mro_w):
     # do some checking here.  Note that unlike CPython, strange MROs
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to