[pypy-commit] pypy default: (arigo, cfbolz): logic was inverted (bad cfbolz, no cookie)

arigo pypy.commits at gmail.com
Wed Aug 24 10:40:10 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
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):


More information about the pypy-commit mailing list