Bug in python!? persistent value of an optional parameter in function!

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Mar 8 01:33:28 EST 2007


John Nagle wrote:

>     True.  It would make sense to disallow mutable values as
> initial values for optional arguments.  The present behavior
> is silly.

Why? You're free to only use immutables.

Regards,


Björn

-- 
BOFH excuse #42:

spaghetti cable cause packet failure




More information about the Python-list mailing list