function with list argument defaulting to [] - what's going on here???

BJörn Lindqvist bjourne at gmail.com
Sun Apr 15 05:29:01 CEST 2007


> This comes up so often that I wonder whether Python should issue a warning
> when it sees [] or {} as a default argument.
>
>
> What do people think? A misuse or good use of warnings?

I think Python should reevaluate the default values.

-- 
mvh Björn



More information about the Python-list mailing list