On 28/05/20 7:31 pm, Chris Angelico wrote:
Is it an implementation detail that 4 will be used for eggs if it
isn't passed?

That feels different to me somehow. I think it has something to do
with declarative vs. procedural stuff. The default value of eggs
being 4 is a static fact, but creating a new Spam object is not.
To my mind, procedural code belongs in the body of the function,
not in the header.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/67LPYOOPPWXGLBV5JYGPDPEY6MPETMCL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to