On 5/10/26 19:17, Lawrence D’Oliveiro wrote:
A new feature coming in Python 3.15 is the “sentinel” class, useful
for creating custom values to mark the end of sequences of items, that
kind of thing
<https://docs.python.org/3.15/library/functions.html#sentinel>,
<https://peps.python.org/pep-0661/>.

For those times when a simple “None” marker element is not sufficient,
this will be very convenient. <SNIP>

Forgive me, but this smells of Feeping Creaturism to solve a not very important 
question
at the expense crufting up the language and decreasing clarity.

I have seen this happen with every single language I ever used except perhaps,
assembler, C, and Forth.

Oh well, there's an opportunity here for someone to excise the noisy PEPs and
create Python Lite.

--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to