Stop Using Mutable Default Arguments in Python: They Don’t Work the Way You Think

A deep dive into one of Python’s most misunderstood features and the standard way to handle it