[Python-ideas] Python Float Update

David Mertz mertz at gnosis.cx
Thu Jun 4 17:21:09 CEST 2015


On Jun 4, 2015 8:12 AM, "Steven D'Aprano" <steve at pearwood.info> wrote:
> The decimal module is not free to do whatever we want. It can only do
> what is specified by those standards.

That's not quite true. The class decimal.Decimal must obey those standards.
We could easily add decimal32/64/128 types to the module for those
different objects (and I think we probably should).

For that matter, it wouldn't violate the standards to add
decimal.PythonDecimal with some other behaviors. But I can't really think
of any desirable behaviors that are mathematically possible to put there.
There isn't going to be a decimal.NeverSurprisingDecimal class in there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150604/4e57324a/attachment.html>


More information about the Python-ideas mailing list