[Python-ideas] PEP 485: A Function for testing approximate equality

Ron Adam ron3200 at gmail.com
Mon Jan 26 19:01:18 CET 2015

On 01/26/2015 12:39 AM, Steven D'Aprano wrote:
>>> > >Note that in this case, at least, we do want a symmetric version of
>>> > >"is_close", since neither guess nor new_guess is "correct", they are
>>> > >both approximations.
>> >
>> >true, but you are also asking the question -- is the new_guess much
>> >different that guess. Which points to a asymmetric test -- but either would
>> >work.
> I can see we're going to have to argue about the "Close To" versus
> "Close" distinction:-)
> I suggest that in the interest of not flooding everyone's inboxes, we
> take that off-list until we have either a concensus or at least
> agreement that we cannot reach concensus.

Is there any reason why someone would not want to use an asymmetric version 
in a symmetric way?


More information about the Python-ideas mailing list