Default mutable parameters in functions

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Apr 3 20:38:33 EDT 2014


On 03/04/2014 19:49, fbicknel at gmail.com wrote:
> Hi all,
>
> So I was reading about default values for functions and spied this:

[snip]

>
> I was rather expecting it to start with 4!

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>".

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





More information about the Python-list mailing list