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

Chris Barker chris.barker at noaa.gov
Mon Jan 26 19:23:20 CET 2015

On Mon, Jan 26, 2015 at 10:01 AM, Ron Adam <ron3200 at gmail.com> wrote:

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

You mean they pre-sort the arguments the way they want?

Sure, you could do that. Though if it were me, I'd probably just re-write
the test myself.

But throughout all this -- I haven't thought of a single case where I would
prefer a symmetric test and it would matter.

It certainly appeals to me as clean, and more similar to equal, etc, but I
haven't come up with a practical reason to prefer it.

Can anyone?



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150126/c9dec8b0/attachment.html>

More information about the Python-ideas mailing list