4 ms·
> because the default value for the target_list parameter is mutable, it gets shared between function calls bit of a weird way to phrase it, I think they're al
by roywiggins 4y ago
> because the default value for the target_list parameter is mutable, it gets shared between function calls
bit of a weird way to phrase it, I think they're always shared between function calls, you just don't notice when they're not mutable.
- masklinn 4y agoThat is correct, default values are initialised at compilation time and stored in the function object.