[Python-Dev] Error msgs for new-style division
Thomas Heller
theller at python.net
Tue Mar 28 12:57:10 CEST 2006
Georg Brandl wrote:
> Hi,
>
> (this makes test_ctypes fail, therefore I noticed)
>
> currently with -Qnew:
>
>>>> 2/0
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ZeroDivisionError: float division
>>>> 2L/0
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ZeroDivisionError: long division or modulo by zero
>>>> 2/0L
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ZeroDivisionError: long division or modulo by zero
>
I'll fix that in the ctypes tests.
Thomas
More information about the Python-Dev
mailing list