News for hackers. Stuff that matters.
Re:Python's Mutable Default Problem by statictype on Sunday February 20, 2011 @11:54AM (#2242291)
"a natural outcropping of python's late binding, "names are references" variable model, and closure mechanisms, which provide a consistency to the language that is often crufted up in others"

hm... that's debatable. The implementation could have just as easily chosen to evaluate the default arguments each time the function is invoked and that decision wouldn't have broken any of the existing mental models of variable binding/closures.

There are no comments on this comment yet.