[pypy-svn] r79773 - pypy/trunk/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Fri Dec 3 13:03:43 CET 2010


Author: arigo
Date: Fri Dec  3 13:03:39 2010
New Revision: 79773

Modified:
   pypy/trunk/pypy/annotation/binaryop.py
Log:
Fix to get a meaningful error message instead of TypeError.


Modified: pypy/trunk/pypy/annotation/binaryop.py
==============================================================================
--- pypy/trunk/pypy/annotation/binaryop.py	(original)
+++ pypy/trunk/pypy/annotation/binaryop.py	Fri Dec  3 13:03:39 2010
@@ -861,7 +861,7 @@
     def getitem((p, obj)):
         assert False,"ptr %r getitem index not an int: %r" % (p.ll_ptrtype, obj)
 
-    def setitem((p, obj)):
+    def setitem((p, obj), s_value):
         assert False,"ptr %r setitem index not an int: %r" % (p.ll_ptrtype, obj)
 
 class __extend__(pairtype(SomeObject, SomePtr)):



More information about the Pypy-commit mailing list