[pypy-svn] r17689 - pypy/dist/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Tue Sep 20 14:10:29 CEST 2005


Author: arigo
Date: Tue Sep 20 14:10:27 2005
New Revision: 17689

Modified:
   pypy/dist/pypy/objspace/std/intobject.py
Log:
Agreement on IRC that it doesn't make much sense to stick this close to
CPython's error messages when we can easily provide more precise ones.



Modified: pypy/dist/pypy/objspace/std/intobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/intobject.py	(original)
+++ pypy/dist/pypy/objspace/std/intobject.py	Tue Sep 20 14:10:27 2005
@@ -147,7 +147,7 @@
         z = ovfcheck(x // y)
     except ZeroDivisionError:
         raise OperationError(space.w_ZeroDivisionError,
-                             space.wrap("integer division or modulo by zero"))
+                             space.wrap("integer division by zero"))
     except OverflowError:
         raise FailedToImplement(space.w_OverflowError,
                                 space.wrap("integer division"))
@@ -168,7 +168,7 @@
         z = ovfcheck(x % y)
     except ZeroDivisionError:
         raise OperationError(space.w_ZeroDivisionError,
-                             space.wrap("integer division or modulo by zero"))
+                             space.wrap("integer modulo by zero"))
     except OverflowError:
         raise FailedToImplement(space.w_OverflowError,
                                 space.wrap("integer modulo"))
@@ -181,7 +181,7 @@
         z = ovfcheck(x // y)
     except ZeroDivisionError:
         raise OperationError(space.w_ZeroDivisionError,
-                             space.wrap("integer division or modulo by zero"))
+                             space.wrap("integer divmod by zero"))
     except OverflowError:
         raise FailedToImplement(space.w_OverflowError,
                                 space.wrap("integer modulo"))



More information about the Pypy-commit mailing list