On Fri, Dec 13, 2019 at 07:41:59AM -0400, Juancarlo Añez wrote:
> It was my omission in the OP that *default=* should be explicit, instead of
> an implicit *None.* The consistent semantics are those of *dict.get()* and
> *dict.pop()*.
py> {1:'a'}.get(999) is None
True
--
Steven
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/CPTMCTIJTJKMVJGVONCRL4FT7PVDET5X/
Code of Conduct: http://python.org/psf/codeofconduct/