Python violates "The Principle of Least Astonishment" when using a mutable default value as a function parameter. Yeah, it's a bold statement. But hear me out and then decide for yourself.
Read Python Mixed Metaphors.
Python violates "The Principle of Least Astonishment" when using a mutable default value as a function parameter. Yeah, it's a bold statement. But hear me out and then decide for yourself.
Read Python Mixed Metaphors.