You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a discussion of mutable default arguments here: https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument. I didn't know that before! There are some empty lists passed as default arguments in the constructor for LinkStep. This isn't causing any issues right now, but it could cause issues in the future, as it gives many different places in the code unwitting write access to the same lists.
Let's replace the lists with tuples or do something similar to prevent the issue.
The text was updated successfully, but these errors were encountered:
There's a discussion of mutable default arguments here: https://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument. I didn't know that before! There are some empty lists passed as default arguments in the constructor for
LinkStep
. This isn't causing any issues right now, but it could cause issues in the future, as it gives many different places in the code unwitting write access to the same lists.Let's replace the lists with tuples or do something similar to prevent the issue.
The text was updated successfully, but these errors were encountered: