[EMAIL PROTECTED] <[EMAIL PROTECTED]>: > On 13 Lug, 19:42, [EMAIL PROTECTED] wrote: >> I expect it's because default values for parameters are evaluated and >> bound at definition time. So once "def m (self, param = a):" line >> executes, the default value for parameter is forever bound to be 1. >> What you can do is for example: > > Yes, that's what I thought, too. Although, it does not seem to me the > correct thing that has to be done, that is why I reported it.
It _is_ the correct thing. Evaluation of default parameters at "declaration time" and not at invocation is truely a language feature, not a bug. You'll find your bug report being closed quickly. -- Freedom is always the freedom of dissenters. (Rosa Luxemburg) -- http://mail.python.org/mailman/listinfo/python-list