[issue15815] Add numerator to ZeroDivisionError messages

2012-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not enough, at present, to leave this open. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue15815] Add numerator to ZeroDivisionError messages

2012-09-26 Thread Mark Dickinson
Mark Dickinson added the comment: I'll add my -1 to this; I don't really see the use. -- ___ Python tracker ___ ___ Python-bugs-list

[issue15815] Add numerator to ZeroDivisionError messages

2012-09-26 Thread Ezio Melotti
Ezio Melotti added the comment: Terry, do you still think that adding the numerator would be useful? -- ___ Python tracker ___ ___ Pyt

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-31 Thread Ezio Melotti
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 ma

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Antoine Pitrou
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

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Terry J. Reedy
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 -- __

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Antoine Pitrou
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 __

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Terry J. Reedy
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 a