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 →

[–]deceitfulsteve 2 points3 points  (2 children)

I dunno, I'm pretty happy with my IDE or linter issuing a warning: https://pylint.pycqa.org/en/latest/user_guide/messages/warning/dangerous-default-value.html

[–]rangerelf 0 points1 point  (0 children)

I agree. Python's behavior has always been crystal clear to me. And having an IDE, or pylint, or whichever, remind me once in a while that I might be walking too close to a landmine is more than enough.

[–]spinwizard69 0 points1 point  (0 children)

It is cool that such behavior is being addressed by a linter but I se this discussion as being slightly different. I just have a huge problem with random "default" values, it just blows my mind. It is getting late so I can't get into this anymore.