default value in __init__

Aaron "Castironpi" Brady castironpi at gmail.com
Tue Oct 14 17:08:21 EDT 2008


On Oct 14, 1:50 pm, Bruno Desthuilliers
<bdesth.quelquech... at free.quelquepart.fr> wrote:
> David C. Ullrich a écrit :
>
>
>
> > In article <48ef37fe$0$22798$426a3... at news.free.fr>,
> >  Bruno Desthuilliers <bruno.42.desthuilli... at websiteburo.invalid>
> >  wrote:
snip
> (snip)
snip
> > In particular default parameters should work the way the user
> > expects! The fact that different users will expect different
> > things here is no excuse...
>
> If different users expect different - mostly incompatible - things, how
> would it be possible to have it working "the way the user expect" ?
> Should Python grow some telepathic features to guess the user's
> expectations and modifies itself to meet these expectations ?-)

No.  Just have a user community that only has one user.



More information about the Python-list mailing list