2 ms·
Why does that issue only come up with default arguments? Why not other places?
by bilsbie 3y ago
Why does that issue only come up with default arguments?
Why not other places?
- ironSkillet 3y agoDefault arguments are evaluated and created when the function definition is evaluated, not when the function itself is evaluated. This means that the scope of the default argument is actually the entire module, not just a single invocation of the method. This is what throws people off.