|
|
|
|
|
by yatac42
1952 days ago
|
|
> Also, the mutable default arguments problem is quite difficult to solve in any other way. Python never copies things for you. Why would it need to copy anything? What's wrong with just evaluating the default argument expression every time the function is called with a default argument rather than once at definition-time? That's how it works in other languages. |
|