[pypy-svn] r5710 - pypy/trunk/src/pypy/objspace

mwh at codespeak.net mwh at codespeak.net
Tue Jul 27 14:09:26 CEST 2004


Author: mwh
Date: Tue Jul 27 14:09:26 2004
New Revision: 5710

Modified:
   pypy/trunk/src/pypy/objspace/descroperation.py
Log:
Remove extra definition of contains().


Modified: pypy/trunk/src/pypy/objspace/descroperation.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/descroperation.py	(original)
+++ pypy/trunk/src/pypy/objspace/descroperation.py	Tue Jul 27 14:09:26 2004
@@ -181,13 +181,6 @@
         return space.get_and_call_function(w_descr,w_obj)
         # XXX PyObject_Repr() probably checks that the result is a string
 
-    def contains(space,w_obj,w_val):
-        w_descr = space.lookup(w_obj,'__contains__')
-        if w_descr is None:
-            raise OperationError(space.w_TypeError,
-                   space.wrap("object doesn't know about contains"))
-        return space.get_and_call_function(w_descr,w_obj,w_val)
-        
     def iter(space,w_obj):
         w_descr = space.lookup(w_obj,'__iter__')
         if w_descr is None:



More information about the Pypy-commit mailing list