On 27/05/20 7:36 am, Alex Hall wrote:
the only benefit I'm seeing is being able to avoid typing `if obj is sentinel`. In fact it saves even less typing than other proposals since you still have to write `obj ?= value`.
"Did the user supply a value for this optional argument?" is a simple and reasonable question to ask. It deserves to have a simple and direct way of answering it that always works. -- 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/BGH7SKVWMDHETSGLF25O5TYTTX5DWN5I/ Code of Conduct: http://python.org/psf/codeofconduct/