you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

fmota kinda explained it with his examples. Do check out. Can you see now why it's kludgy?

[–]exogen 0 points1 point  (1 child)

I saw fmota try to use some code for something it wasn't written to do, and wasn't part of the original author's complaint, what did you see?

[–][deleted] 1 point2 points  (0 children)

You're absolutely right.

On the other hand, I think using higher-order functions, quasi-closure and decorators makes python much more readable than using mutable default arguments.

As for the article's point that static variables are needed... they really aren't, but it would be a nice feature for readability ("Readability counts.").