Ezio Melotti added the comment:
Terry, do you still think that adding the numerator would be useful?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15815
___
Mark Dickinson added the comment:
I'll add my -1 to this; I don't really see the use.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15815
___
Terry J. Reedy added the comment:
Not enough, at present, to leave this open.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15815
___
Ezio Melotti added the comment:
I'm not sure this is really useful. Once I know that I divided by zero and I
know where the division is, I don't really care what the numerator is. Knowing
the exact type of the denominator (0, 0.0, 0j) doesn't sound too useful as well
-- unless you somehow
New submission from Terry J. Reedy:
I propose that we add 'of ' to all ZeroDivisionError messagesso it is less
necessary to use a debugger to add print statements to recover the information
currently tossed away. (I also propose to change denominator from 'zero' to
'0', '0.0', '0+0j', as
Antoine Pitrou added the comment:
What would be the point? Usually you should find out why the denominator is
zero, not what the numerator's value is.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15815
Terry J. Reedy added the comment:
In case the value of the numerator helps find out why the denominator is 0. The
example given by Mike Graham on python-ideas, Verbose traceback formatting was
def f(a):
x = a * 4
y = a - 4
return x / y
--
Antoine Pitrou added the comment:
In case the value of the numerator helps find out why the denominator
is 0. The example given by Mike Graham on python-ideas, Verbose
traceback formatting was
def f(a):
x = a * 4
y = a - 4
return x / y
Well, in this case y == 0 iff a == 4.