Re:Python's Mutable Default Problem
by sjs on Monday February 21, 2011 @01:22AM
(#2244478)
I disagree, but we've gotten a bit off topic.
I think Python's behaviour is confusing and basically never what anyone actually wants. Regardless of whether or not you can use other params in defaults, the defaults should be evaluated on each call.
I think Python's behaviour is confusing and basically never what anyone actually wants. Regardless of whether or not you can use other params in defaults, the defaults should be evaluated on each call.