functions, list, default parameters

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Oct 30 08:31:53 CEST 2010


Steven D'Aprano wrote:

> And how does Python know whether some arbitrary default object is mutable 
> or not?

It doesn't, that's the whole point.

-- 
Greg



More information about the Python-list mailing list