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

BJörn Lindqvist bjourne at gmail.com
Sat Apr 14 23:29:01 EDT 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