Closed kinow closed 5 years ago
Thanks @kinow. I agree your change is a good one, but for anyone following along at home I don't believe the existing code leads to any unintended behaviour, as the way this routine is currently used is quite limited.
Are you evaluating payu
for running models, or just taking an interest?
The latter. Agree it is harmless, and all good if not merged :-) it was for the just in case
I agree it'sa good idea to avoid mutables as inputs, even if there's no real danger in this case.
@aidanheerdegen if you're happy to merge then no objections from me.
Didn't merge until replies were in, seemed rude otherwise .. :)
Hi!
Small change to prevent unwanted behaviour for
add_fast
. https://docs.quantifiedcode.com/python-anti-patterns/correctness/mutable_default_value_as_argument.htmlCheers