[pypy-svn] r8423 - in pypy/branch/src-typedunwrap/pypy: interpreter objspace

pedronis at codespeak.net pedronis at codespeak.net
Wed Jan 19 19:51:15 CET 2005


Author: pedronis
Date: Wed Jan 19 19:51:14 2005
New Revision: 8423

Modified:
   pypy/branch/src-typedunwrap/pypy/interpreter/gateway.py
   pypy/branch/src-typedunwrap/pypy/objspace/trivial.py
Log:
typos



Modified: pypy/branch/src-typedunwrap/pypy/interpreter/gateway.py
==============================================================================
--- pypy/branch/src-typedunwrap/pypy/interpreter/gateway.py	(original)
+++ pypy/branch/src-typedunwrap/pypy/interpreter/gateway.py	Wed Jan 19 19:51:14 2005
@@ -188,7 +188,7 @@
     'args_w': unwrap_spec_emit_args_w,
 }
 
-# unwrap_space_check/emit for str,int,float
+# unwrap_spec_check/emit for str,int,float
 for basic_type in [str,int,float]:
     name = basic_type.__name__
     def unwrap_spec_check_basic(orig_sig, new_sig, name=name):

Modified: pypy/branch/src-typedunwrap/pypy/objspace/trivial.py
==============================================================================
--- pypy/branch/src-typedunwrap/pypy/objspace/trivial.py	(original)
+++ pypy/branch/src-typedunwrap/pypy/objspace/trivial.py	Wed Jan 19 19:51:14 2005
@@ -147,10 +147,10 @@
             if -sys.maxint-1 <= w <= sys.maxint:
                 return w
             raise OperationError(self.w_OverflowError,
-                                 sefl.wrap("long int too large to convert to int"))            
+                                 self.wrap("long int too large to convert to int"))            
       
         raise OperationError(self.w_TypeError,
-                                 sefl.wrap("expected integer"))
+                                 self.wrap("expected integer"))
 
     def str_w(self, w):
         if type(w) is not str:
@@ -161,7 +161,7 @@
     def float_w(self, w):
         if type(w) is not float:
             raise OperationError(self.w_TypeError,
-                                 sefl.wrap("expected float"))
+                                 self.wrap("expected float"))
         return w
 
     def unwrap(self, w):



More information about the Pypy-commit mailing list