[pypy-svn] r26601 - pypy/dist/pypy/objspace/cpy

arigo at codespeak.net arigo at codespeak.net
Sun Apr 30 16:05:41 CEST 2006


Author: arigo
Date: Sun Apr 30 16:05:41 2006
New Revision: 26601

Modified:
   pypy/dist/pypy/objspace/cpy/objspace.py
Log:
Fixes enabled by the OperationError support.


Modified: pypy/dist/pypy/objspace/cpy/objspace.py
==============================================================================
--- pypy/dist/pypy/objspace/cpy/objspace.py	(original)
+++ pypy/dist/pypy/objspace/cpy/objspace.py	Sun Apr 30 16:05:41 2006
@@ -17,6 +17,7 @@
         self.w_Exception     = W_Object(Exception)
         self.w_StopIteration = W_Object(StopIteration)
         self.w_TypeError     = W_Object(TypeError)
+        self.w_KeyError      = W_Object(KeyError)
         self.wrap_cache = {}
         self.rev_wrap_cache = {}
 
@@ -51,12 +52,6 @@
         assert isinstance(w_obj, W_Object)
         return w_obj.value
 
-    def finditem(self, w_obj, w_key):
-        try:
-            return self.getitem(w_obj, w_key)
-        except KeyError:   # XXX think about OperationError
-            return None
-
     def interpclass_w(self, w_obj):
         try:
             return self.rev_wrap_cache[id(w_obj)][1]



More information about the Pypy-commit mailing list