[Python-Dev] Error msgs for new-style division

Georg Brandl g.brandl at gmx.net
Tue Mar 28 12:38:32 CEST 2006


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

This seems a little inconsistent. Do we care?

Georg



More information about the Python-Dev mailing list