[pypy-svn] r7392 - pypy/trunk/src/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Thu Nov 18 17:47:58 CET 2004


Author: arigo
Date: Thu Nov 18 17:47:58 2004
New Revision: 7392

Modified:
   pypy/trunk/src/pypy/annotation/unaryop.py
Log:
- print a warning for simple_call(SomeObject())
- support for list.reverse()


Modified: pypy/trunk/src/pypy/annotation/unaryop.py
==============================================================================
--- pypy/trunk/src/pypy/annotation/unaryop.py	(original)
+++ pypy/trunk/src/pypy/annotation/unaryop.py	Thu Nov 18 17:47:58 2004
@@ -54,6 +54,11 @@
     def bindcallables(obj, classdef):
         return obj   # default unbound __get__ implementation
 
+    def simple_call(*obj_and_args):
+        #raise Exception, "cannot follow simple_call%r" % (obj_and_args,)
+        print "*** cannot follow simple_call%r" % (obj_and_args,)
+        return SomeObject()
+
 
 class __extend__(SomeBool):
     def is_true(self):
@@ -76,6 +81,9 @@
     def method_append(lst, s_item):
         pair(lst, SomeInteger()).setitem(s_item)
 
+    def method_reverse(lst):
+        pass
+
     def iter(lst):
         return SomeIterator(lst.s_item)
 



More information about the Pypy-commit mailing list