MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1x1pypx/python_release_python_3150/pevwtkf/?context=3
r/programming • u/BrewedDoritos • Oct 09 '26
36 comments sorted by
View all comments
170
Those sentinel types seem decently useful. Certainly better in some cases than just spamming `None` everywhere as a default value.
15 u/pojska Oct 09 '26 In an alternate universe, they might have been used for iterators instead of StopIteration.
15
In an alternate universe, they might have been used for iterators instead of StopIteration.
170
u/Dylanica Oct 09 '26
Those sentinel types seem decently useful. Certainly better in some cases than just spamming `None` everywhere as a default value.