On Tue, Mar 16, 2010 at 9:41 AM, Mark Dickinson <dickinsm at gmail.com> wrote: > On the one hand there's something to be said for maintaining a clean > separation between the float and Decimal types, allowing only explicit > conversions from one to the other; mixed-type arithmetic between > floats and Decimals was very deliberately not permitted in the > original PEP, and that's unlikely to change in a hurry. On the other But, to be fair, we didn't have "true value of the float at that time". I'm +0 to allow these comparisons, being "Decimal(1) < .3" the same as "Decimal(1) < Decimal.from_float(.3)" -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4