Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r86499:2cd8ca921907
Date: 2016-08-24 14:43 +0100
http://bitbucket.org/pypy/pypy/changeset/2cd8ca921907/

Log:    (arigo, cfbolz): logic was inverted (bad cfbolz, no cookie)

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
@@ -1018,7 +1018,7 @@
     # if the layout has a dict itself, then mapdict is not used for normal
     # attributes. Then the cache won't be able to spot changes to the dict.
     # Thus we don't cache. see test_bug_builtin_types_callmethod
-    if not w_type.layout.typedef.hasdict:
+    if w_type.layout.typedef.hasdict:
         return
 
     if w_method is None or isinstance(w_method, MutableCell):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to