On Sun, Jun 14, 2020 at 10:41 PM Sebastian M. Ernst
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