On 31/05/20 1:31 am, Steven D'Aprano wrote:
On Thu, May 28, 2020 at 10:27:47PM +1200, Greg Ewing wrote:
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?

The default value of eggs
being 4 is a static fact, but creating a new Spam object is not.

Would your feeling change if we were talking about a "variables are
memory locations" language, where the value 4 has to be copied into the
"eggs" memory location?

No, I don't think so.

--
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/UVVGZBNMOCEDM7FS6KPUDU7N63FWNJHL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to