[pypy-svn] r76903 - pypy/branch/gc-module/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Mon Sep 6 19:12:11 CEST 2010


Author: arigo
Date: Mon Sep  6 19:12:09 2010
New Revision: 76903

Modified:
   pypy/branch/gc-module/pypy/annotation/binaryop.py
Log:
Oups!  That was bogus.


Modified: pypy/branch/gc-module/pypy/annotation/binaryop.py
==============================================================================
--- pypy/branch/gc-module/pypy/annotation/binaryop.py	(original)
+++ pypy/branch/gc-module/pypy/annotation/binaryop.py	Mon Sep  6 19:12:09 2010
@@ -594,9 +594,7 @@
     getitem_idx_key = getitem_idx
 
     def setitem((lst1, int2), s_value):
-        if lst1.listdef.listitem.s_value.contains(s_value):
-            return     # already up-to-date
-        getbookkeeper().count("list_setitem", int2)
+        getbookkeeper().count("list_setitem", int2)        
         lst1.listdef.mutate()
         lst1.listdef.generalize(s_value)
     setitem.can_only_throw = [IndexError]



More information about the Pypy-commit mailing list