As someone who's had to make use of the pattern `_sentinel = object()` a
few times within stdlib code, I'd like to give a strong +1 for the proposal
to add a new `sentinel()` function. This is much more intuitive, easier to
look up, etc. From my experience, it's a common enough pattern to be well
worth the addition.
Thanks for the proposal, Tal. :)
On Sun, Jun 6, 2021 at 4:14 AM Tal Einat
Hi,
I have prepared a PEP proposing adding a stdlib function for defining sentinel values. You can find the PEP here:
https://www.python.org/dev/peps/pep-0661/
The discussion is happening in the discourse server:
https://discuss.python.org/t/pep-661-sentinel-values/9126
To avoid splitting the discussion, *please redirect your comments there* instead of replying to this thread.
Have a nice week, - Tal Einat _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-leave@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/3QNLVLSM... Code of Conduct: http://python.org/psf/codeofconduct/