On Mon, Dec 06, 2021 at 11:57:11AM -0800, Neil Girdhar wrote:

> Has anyone done a survey of, say, the cpython library codebase to see what 
> proportion of arguments lists would significantly benefit from this PEP 
> given as a proportion of the total codebase?  In all the Python I've ever 
> written or seen, I can only thing of one example of a custom sentinel ever 
> being needed.

It is not just the *custom sentinels* that could be replaced with 
late-bound defaults, but the good ol' `if param is None` sentinel as 
well.


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

Reply via email to