Python’s operator chaining is mildly interesting
Nary a week ago, I typed a harmless expression into my Memphis REPL: 4 == 4 == 4.
My REPL’s response? False.
I’m glad it can speak its mind, but the gall!
Apparently, you can’t just treat a chain of comparison operators like a tree of binary expressi...
fromscratchcode.hashnode.dev7 min read