Re: Coming In Python 3.15: Sentinel Values

2026-05-12 Thread Chris Angelico via Python-list
On Tue, 12 May 2026 at 13:35, Tim Daneliuk via Python-list wrote: > 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 excep

Re: Coming In Python 3.15: Sentinel Values

2026-05-12 Thread Thomas Passin
On 5/11/2026 8:51 PM, Tim Daneliuk via Python-list wrote: 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

Re: Coming In Python 3.15: Sentinel Values

2026-05-12 Thread Tim Daneliuk via Python-list
On 5/12/26 03:03, Paul Rubin wrote: Tim Daneliuk writes: Oh well, there's an opportunity here for someone to excise the noisy PEPs and create Python Lite. https://micropython.org Thanks Paul, that's very cool. Added to my quiver of arrows ;) -- https://mail.python.org/mailman3//lists/pytho

Re: Coming In Python 3.15: Sentinel Values

2026-05-12 Thread Tim Daneliuk via Python-list
On 5/11/26 21:42, Lawrence D’Oliveiro wrote: On Mon, 11 May 2026 19:51:21 -0500, Tim Daneliuk wrote: 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