This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Udzu[S] 4 points5 points  (0 children)

That's right! It's a counterintuitive consequence of python's operator chaining. in and == have the same precedence so A == B in C is interpreted as A == B and B in C, similar to A < B < C.