Why in Python does “0, 0 == (0, 0)” equal “(0, False)”?
The first two expressions both parse as tuples: (0, 0) == 0 (which is False), followed by 0 0, followed by 0 == (0, 0) (which is still False that way around). The expressions are split that way because of the relative precedence of the comma separator compared to the equality operator: Python sees a … Read more