side effects on *some* default parameters

Erik Max Francis max at alcyone.com
Thu Feb 13 18:15:55 EST 2003


Joe Grossberg wrote:

> *Why* is this better than the alternative (i.e. default argument
> values get created every time the method/function is called without
> the parameter)?

The answer is probably half historical accident, half it was easiest to
do it that way at the time.  (Let's not get into this whole discussion
again.)

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Sentimentality is a superstructure covering brutality.
\__/ C.G. Jung
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.




More information about the Python-list mailing list