Well there you go, good point.
I didn't really like it being an operator myself. But I can see having a math.tolerance class being useful.

On Tue, 23 Jun 2020 at 13:53, Jonathan Goble <jcgoble3@gmail.com> wrote:
On Tue, Jun 23, 2020 at 8:44 AM Mathew Elman <mathew.elman@ocado.com> wrote:
Perhaps a more versatile operator would be to introduce a +- operator that would return an object with an __eq__ method that checks for equality in the tolerance i.e

    a == b +- 0.5

This is already valid syntax, because unary minus is a thing. So this is currently parsed as "a == b + (-0.5)".

Reversing it to use -+ won't work because unary plus is also a thing.

Notice:
This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group.

If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses.

References to the "Ocado Group" are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.