[Python-Dev] Decimal & lt; -& gt; float comparisons in py3k.
Antoine Pitrou
solipsis at pitrou.net
Fri Mar 19 12:50:16 CET 2010
Glenn Linderman <glenn <at> nevcal.com> writes:
>
> On the other hand, if the default behavior is to do an implicit
> conversion, I don't know of any way that that could be turned into an
> exception for those coders that don't want or don't like the particular
> type of implicit conversion chosen.
You still haven't given a good reason why we should raise an exception rather
than do a comparison, though.
The fact that some particular coders don't like "the particular type of implicit
conversion chosen" is a particularly weak argument. Python isn't a language
construction framework; we try to choose useful defaults rather than simply give
out a box of tools. If some people don't like the defaults (significant
indentation, limitless precision integers, etc.), there are other choices out
there.
Antoine.
More information about the Python-Dev
mailing list