On Tue, Mar 16, 2010 at 10:32 PM, Steven D'Aprano <st...@pearwood.info> wrote: > On Wed, 17 Mar 2010 03:23:30 am Mark Dickinson wrote: >> On Tue, Mar 16, 2010 at 4:11 PM, Mark Dickinson <dicki...@gmail.com> >> wrote: [...] >> >> >>>> Decimal.from_float(1.1) == 1.1 >> > >> > False >> >> Whoops. To clarify, this is the pre-patch behaviour; post-patch, >> this gives True. > > Whew! You had me worried there for a second. Just to clarify, you are > proposing: > > Decimal.from_float(1.1) == 1.1 > Decimal.('1.1') != float('1.1')
Exactly, yes. -- Mark _______________________________________________ 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