[EMAIL PROTECTED] writes:
> Author: adim
> Date: Mon Sep 19 16:10:24 2005
> New Revision: 17659
>
> Modified:
> pypy/dist/pypy/objspace/std/intobject.py
> Log:
> fixed error messages to match CPython's
>
>
> Modified: pypy/dist/pypy/objspace/std/intobject.py
> ==============================================================================
> --- pypy/dist/pypy/objspace/std/intobject.py (original)
> +++ pypy/dist/pypy/objspace/std/intobject.py Mon Sep 19 16:10:24 2005
> @@ -147,7 +147,7 @@
> z = ovfcheck(x // y)
> except ZeroDivisionError:
> raise OperationError(space.w_ZeroDivisionError,
> - space.wrap("integer division by zero"))
> + space.wrap("integer division or modulo by
> zero"))
> except OverflowError:
> raise FailedToImplement(space.w_OverflowError,
> space.wrap("integer division"))
This kind of thing bothers me a bit. We're actively making our error
messages _worse_, because CPython's are worse. I'm all for
conformance, but...
Cheers,
mwh
--
I don't have any special knowledge of all this. In fact, I made all
the above up, in the hope that it corresponds to reality.
-- Mark Carroll, ucam.chat
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev