You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is, the equality operator can hold that v == o is false but o == v is true, if o is a type operation and v is a variable that is bound to o. This is confusing.
The text was updated successfully, but these errors were encountered:
Note also that __hash__, introduced in db95ab8, violates the principle that x == y implies hash(x) == hash(y), for the same reason. The main reason I haven't removed it yet is that is that equality is often used in testing. Should define an .assertMatch() instead of using .assertEqual().
As it is, the equality operator can hold that
v == o
is false buto == v
is true, ifo
is a type operation andv
is a variable that is bound too
. This is confusing.The text was updated successfully, but these errors were encountered: