Default mutable parameters in functions

random832 at fastmail.us random832 at fastmail.us
Fri Apr 4 10:00:25 EDT 2014


On Thu, Apr 3, 2014, at 20:38, Mark Lawrence wrote:
> I just wish I had a quid for every time somebody expects something out 
> of Python, that way I'd have retired years ago.  At least here it's not 
> accompanied by "as that's how it works in <some other language>".

I can't imagine a language that would work that way. For one, it would
also imply that passing a value would change the default for future
calls even for non-mutable types.



More information about the Python-list mailing list