When Memphis, my Python interpreter written in Rust, told me 4 == 4 == 4 is False, I knew something was amok. Turns out, Python's comparison chains work differently than binary operators. Here's a short post showing how I added chaining support to my parser and two interpreter engines.
fromscratchcode.comPython’s operator chaining is mildly interestingSoftware mentorship for the quietly subversive.
0 reposts2 likes