strange behaviour with keyword arguments and inheritance
Bruno Desthuilliers
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Tue Apr 17 03:14:24 EDT 2007
matthewperpick a écrit :
> Check out this toy example that demonstrates some "strange" behaviour
> with keyword arguments and inheritance.
Nope. It demonstrates that default arguments are eval'd only once (when
the def statement is eval'd), which is documented and a FAQ.
> I have a
> very rudimentary understading of python's guts, but I would still call
> the behaviour unexpected. Or perhaps I should rtfm?
Well, since you mention it... !-)
More information about the Python-list
mailing list