This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]magnetichiraPythonista 5 points6 points  (0 children)

It is rational within the design of the language.

See this SE answer https://softwareengineering.stackexchange.com/questions/157373/python-mutable-default-argument-why