Bug in __init__?

Arnaud Delobelle arnodel at googlemail.com
Sun Jan 20 11:22:28 EST 2008


On Jan 20, 3:39 pm, Bart Ogryczak <B.Ogryc... at addr.in.reply-
to.invalid> wrote:
> On 2008-01-18, citizen Zbigniew Braniecki testified:
>
> > It's really a nice pitfall, I can hardly imagine anyone expecting this,
>
> AFAIR, it's described in Diving Into Python.

Still there seems to be about one message a week about this.  Indeed I
reckon the greatest benefit of early binding of default function
arguments is that it attracts lots of new people to comp.lang.python.

> It's quiet elegant way of creating cache.

IMHO, calling it 'elegant' is pushing it too far!

--
Arnaud




More information about the Python-list mailing list