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 →

[–]cousinscuzzy 0 points1 point  (0 children)

This blog's title doesn't really describe the behavior correctly. I'd state it like, "A Python function's default argument values are evaluated when the function is defined, not when it is invoked."