[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> duplicate status: open -> closed superseder: -> statistics._decimal_to_ratio() produces non-integer ratio ___ Python tracker ___ ___

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Steven D'Aprano
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 2

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: -3.4regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Stefan Krah
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 _

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Wolfgang Maier
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 _

[issue20561] Decimal handling error in statistics module

2014-02-08 Thread Wolfgang Maier
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 "", line 1, in statistics.mean(data) File "C: