New submission from Wolfgang Maier:
Can this still be fixed in 3.4 ??
I came across this bug in the statistics module today:
import statistics
data = [Decimal('1e4')]
statistics.mean(data)
Traceback (most recent call last):
File pyshell#465, line 1, in module
statistics.mean(data)
Wolfgang Maier added the comment:
#if type(den) != int:
#print (d, sign, digits, exp, num, den)
was inserted by me of course for debugging this. Forgot to take it out again.
--
___
Python tracker rep...@bugs.python.org
Changes by Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20561
___
___
Stefan Krah added the comment:
This looks like a duplicate of #20536. Steven, do you think you
have a chance to fix this before rc1?
--
keywords: +3.4regression
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20561
Changes by Stefan Krah stefan-use...@bytereef.org:
--
keywords: -3.4regression
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20561
___
___
Steven D'Aprano added the comment:
On Sat, Feb 08, 2014 at 11:29:29AM +, Stefan Krah wrote:
This looks like a duplicate of #20536. Steven, do you think you
have a chance to fix this before rc1?
Working on it now. Should have a patch and regression tests in 15
minutes, I'll post it on
Changes by Nick Coghlan ncogh...@gmail.com:
--
resolution: - duplicate
status: open - closed
superseder: - statistics._decimal_to_ratio() produces non-integer ratio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20561