I No Longer Like Python's Boolean Comparisons


1 or 2 # returns 1, not True
(1 or 1) == True # returns False

You spend half your life doing Boolean algebra and then Python just has to come and mess it all up.

Related Posts

Transverse versus parallel crossings

Opera night in the tenderloin

Did you ever love her?

what's the ideal analogy

officer grade pemmican

Sammy Cottrell

Jump or die, dumbass

beats you

kairos

Mechanistic Interpretability and Lean 4