This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wolma
Recipients oscarbenjamin, skrah, steven.daprano, wolma
Date 2014-02-07.12:44:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391777098.7.0.586912801704.issue20499@psf.upfronthosting.co.za>
In-reply-to
Content
> We can add a fast Decimal.as_integer_ratio() in C.

That would be a terrific thing to have !! Currently, Decimals perform really poorly with the statistics functions and this is entirely due to this bottleneck.

With regard to calculating the sum of Decimals in decimal arithmetic, the problem is how you'd detect that the input is all Decimals (or contains enough Decimals to justify a switch in the algorithm).
The current statistics module, accepts input data consisting of mixed types, e.g., you could have Decimal mixed with ints or floats. Much of the complexity of the module stems from this fact. You can also read about some of the complications under this issue: http://bugs.python.org/issue20481 .
History
Date User Action Args
2014-02-07 12:44:58wolmasetrecipients: + wolma, steven.daprano, skrah, oscarbenjamin
2014-02-07 12:44:58wolmasetmessageid: <1391777098.7.0.586912801704.issue20499@psf.upfronthosting.co.za>
2014-02-07 12:44:58wolmalinkissue20499 messages
2014-02-07 12:44:58wolmacreate