On Sun, Jun 14, 2020 at 10:41 PM Sebastian M. Ernst <er...@pleiszenburg.de> wrote: > > Hi all, > > after just having typed tons of `math.isclose` (see PEP 485 [1]) and > `numpy.isclose` calls (while basically using their default tolerances > most of the time), I was wondering whether it makes sense to add a > matching operator. >
-1. I don't see that Python needs a different comparison operator, with all the debates that will come through about "when should I use == and when should I use the other". Especially since it'll almost certainly refuel the argument that you should never compare floats for equality. If you're doing a lot with isclose, you can always "from math import isclose as cl" and use a shorter name. But please don't encourage everyone to use isclose() in place of all comparisons. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/A7EODHQB5O637RMUGLVCSX6VLRXGYYNU/ Code of Conduct: http://python.org/psf/codeofconduct/