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

Middle School by Bo Burnham

How to Disable Disqus Ads on your Blog

Derivation of Reservoir Sampling

Fun with Python Iterators: Linked Lists Made Easy

Notes for November 11, 2018

Underrated Vim Option: undofile and undodir

Hot Take on Solo Travel: Starve

Alan Perlis

Book Notes: The Map of My Life by Goro Shimura

Prague