[Python-ideas] Default arguments in Python - the return - running out of ideas but...

Terry Reedy tjreedy at udel.edu
Fri May 15 11:08:00 CEST 2009


Tennessee Leeuwenburg wrote:
> A thought from another direction...
> 
> Any chance we could have the interpreter raise a warning for the case
> 
> def foo(a = []):
>   #stuff

This would be appropriate for any of the code check programs; PyChecker, 
PyLint, whatever.  they already warn about things that are legal, might 
be wanted, but have a good chance of being an error.




More information about the Python-ideas mailing list