Unexpected default arguments behaviour (Maybe bug?)

sukkopera at gmail.com sukkopera at gmail.com
Fri Jul 18 09:00:42 EDT 2008


On 18 Lug, 13:23, "Sebastian \"lunar\" Wiesner"
<basti.wies... at gmx.net> wrote:
> 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.

It has ;). I had totally missed the tutorial section where it is
stated, which actually even has an example quite close to the one I
provided. Sorry for the waste of time.

Giorgio




More information about the Python-list mailing list