Andrew Breza

22%
Flag icon
Using mutable objects as default values for function parameters is dangerous because if the parameters are changed in place, then the default is changed, affecting every future call that relies on the default.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview