7 ms·
You should not ever use mutable default args. The documentation benefit is drastically outweighed by the potential for nasty bugs. http://pythonconquerstheunive
by jamiis 12y ago
You should not ever use mutable default args. The documentation benefit is drastically outweighed by the potential for nasty bugs.
http://pythonconquerstheuniverse.wordpress.com/2012/02/15/mutable-default-arguments/ http://pythonconquerstheuniverse.wordpress.com/2012/02/15/mu...