[Python-ideas] Floating point "closeness" Proposal Outline

Ethan Furman ethan at stoneleaf.us
Wed Jan 21 22:38:05 CET 2015


On 01/21/2015 01:29 PM, Terry Reedy wrote:
> 
> The proper operation of sets (and dicts) depends on == being transitive.  Letting D0 = Decimal(0), we once had 0.0 == 0
> and 0 == D0 but 0.0 != D0 (now fixed) and the result was obscure bugs.  One of the design criteria for, I believe, Enums
> was that == be transitive.

Yes -- it == transitivity makes life easier.  :)

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150121/920ea2fc/attachment.sig>


More information about the Python-ideas mailing list