Tag: least-astonishment

54 votes
30 answers
1.6K views
"Least Astonishment" and the Mutable Default Argument

Anyone tinkering with Python long enough has been bitten (or torn to pieces) by the following issue: def foo(a

avatar
Chaya
0 1 0 9
asked 07 September, 2021