5 ms·
We have mutable default arguments in Python (https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments https://docs.python-guide.org/writing/gotc
by thibaut_barrere 1y ago
We have mutable default arguments in Python (https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments https://docs.python-guide.org/writing/gotchas/#mutable-defau...), by default too, though.
- teddyh 1y agoNot if they are strings, which is what this article is about.