Broken off from the "Custom literals, a la C++" thread:

Greg Ewing wrote:
>Personally I think giving Decimal a global context was a mistake, [...]
> so arguing that "it's no worse than Decimal" isn't going to do much
> to convince me. :-)

I'd be curious to know what alternatives you see. When a user writes `x + y` 
with both `x` and `y` instances of `decimal.Decimal`, the decimal module needs 
to know what precision to compute the result to (as well as what rounding mode 
to use, etc.). Absent a thread-local context or task-local context, where would 
that precision information come from?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/INXN3XOM24N6EZUFYV6O3FAKK6UXBVP5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to