[pypy-svn] r40095 - in pypy/dist/pypy: annotation/test objspace/std rpython/raisingops translator/c/src translator/c/test

gbrandl at codespeak.net gbrandl at codespeak.net
Thu Mar 8 19:49:53 CET 2007


Author: gbrandl
Date: Thu Mar  8 19:49:52 2007
New Revision: 40095

Modified:
   pypy/dist/pypy/annotation/test/test_annrpython.py
   pypy/dist/pypy/objspace/std/floatobject.py
   pypy/dist/pypy/objspace/std/listmultiobject.py
   pypy/dist/pypy/rpython/raisingops/raisingops.py
   pypy/dist/pypy/translator/c/src/int.h
   pypy/dist/pypy/translator/c/test/test_backendoptimized.py
Log:
some random spelling nitpicking


Modified: pypy/dist/pypy/annotation/test/test_annrpython.py
==============================================================================
--- pypy/dist/pypy/annotation/test/test_annrpython.py	(original)
+++ pypy/dist/pypy/annotation/test/test_annrpython.py	Thu Mar  8 19:49:52 2007
@@ -325,7 +325,7 @@
         a = self.RPythonAnnotator()
         s = a.build_types(snippet.flow_type_info,
                           [annmodel.SomeInteger(nonneg=True)])
-        # this checks that isinstance(i, int) didn't loose the
+        # this checks that isinstance(i, int) didn't lose the
         # actually more precise information that i is non-negative
         assert s == annmodel.SomeInteger(nonneg=True)
 

Modified: pypy/dist/pypy/objspace/std/floatobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/floatobject.py	(original)
+++ pypy/dist/pypy/objspace/std/floatobject.py	Thu Mar  8 19:49:52 2007
@@ -120,7 +120,7 @@
 
 # for overflowing comparisons between longs and floats
 # XXX we might have to worry (later) about eq__Float_Int, for the case
-#     where int->float conversion may loose precision :-(
+#     where int->float conversion may lose precision :-(
 def eq__Float_Long(space, w_float1, w_long2):
     # XXX naive implementation
     x = w_float1.floatval

Modified: pypy/dist/pypy/objspace/std/listmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listmultiobject.py	(original)
+++ pypy/dist/pypy/objspace/std/listmultiobject.py	Thu Mar  8 19:49:52 2007
@@ -734,7 +734,7 @@
         if self.detached_impl is None:
             self.detached_impl = self.listimpl.getitem_true_slice(
                 self.start, self.stop)
-            self.listimpl = None # loose the reference
+            self.listimpl = None # lose the reference
 
     def detach_and_unregister(self):
         if self.detached_impl is None:

Modified: pypy/dist/pypy/rpython/raisingops/raisingops.py
==============================================================================
--- pypy/dist/pypy/rpython/raisingops/raisingops.py	(original)
+++ pypy/dist/pypy/rpython/raisingops/raisingops.py	Thu Mar  8 19:49:52 2007
@@ -85,11 +85,11 @@
     '''#define OP_INT_LSHIFT_OVF(x,y,r,err) \
         OP_INT_LSHIFT(x,y,r,err); \
         if ((x) != Py_ARITHMETIC_RIGHT_SHIFT(long, r, (y))) \
-                FAIL_OVF(err, "x<<y loosing bits or changing sign")
+                FAIL_OVF(err, "x<<y losing bits or changing sign")
     '''
     r = x << y
     if x != _Py_ARITHMETIC_RIGHT_SHIFT(r, y):
-        raise OverflowError("x<<y loosing bits or changing sign")
+        raise OverflowError("x<<y losing bits or changing sign")
     else:
         return r
 

Modified: pypy/dist/pypy/translator/c/src/int.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/int.h	(original)
+++ pypy/dist/pypy/translator/c/src/int.h	Thu Mar  8 19:49:52 2007
@@ -99,7 +99,7 @@
 #define OP_INT_LSHIFT_OVF(x,y,r) \
 	OP_INT_LSHIFT(x,y,r); \
 	if ((x) != Py_ARITHMETIC_RIGHT_SHIFT(long, r, (y))) \
-		FAIL_OVF("x<<y loosing bits or changing sign")
+		FAIL_OVF("x<<y losing bits or changing sign")
 
 /* the safe value-checking version of the above macros */
 

Modified: pypy/dist/pypy/translator/c/test/test_backendoptimized.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_backendoptimized.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_backendoptimized.py	Thu Mar  8 19:49:52 2007
@@ -49,7 +49,7 @@
         res = f(5)
         assert res == 5
         res = fn(5)
-        # translated function looses its last reference earlier
+        # translated function loses its last reference earlier
         assert res == 6
     
     def test_del_inheritance(self):



More information about the Pypy-commit mailing list