≈ as alias for `math.isclose`

Would the symbol ≈ (almost equal, U+2248) under any circumstance be acceptable as an alias for math.isclose ?

>>> import math
>>> math.isclose(0.1 + 0.2, 0.3)
>>> 0.1 + 0.2 ≈ 0.3


1 Like

I don’t think so. It’s a niche use case, and it’s very easy to visually mistake for =.

1 Like

I’m surprised anyone wants to use unicode characters that aren’t native to the typical keyboard. Do we really want to be typing alt codes in our editors?


Similar discussion from a few weeks ago: Approximate symbol in python?

1 Like

This is the same conversation.

You’ve confirmed it. There is no circumstance where it is acceptable.