On Mar 19, 2010, at 11:42 AM, Glenn Linderman wrote:
>>
>
> The whole point of providing Decimal is for applications for which float is
> inappropriate. I didn't think I needed to reproduce PEP 327 in my email.
>
> So when a coder choose to use Decimal, it is because float is inappropriate.
> Because float is inappropriate, mixing Decimal and float is inappropriate.
> Having the language coerce implicitly, is inappropriate. All this is in the
> PEP. Note that the PEP actually says that the problem is not doing implicit
> arithmetic (as some have reported in this thread) but in doing implicit
> coercions. In order to do implicit comparisons, one must do an implicit
> coercion. Hence the PEP actually already prohibits implicit comparisons, as
> well as implicit arithmetic.
Well said.
Raymond
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com