This is the first post of a sporadic series where we will dive into the weeds of more complex Python code review samples. I will take (slightly modified) real-world code samples, explain some common mistakes that have been made, and how we can improve things. Let’s jump right in!
Yesterday I stumbled across some code that contained a mistake a lot of Python developers get wrong. Let’s see why and how to fix it.