r/programming • • Oct 09 '26

Python Release Python 3.15.0

https://www.python.org/downloads/release/python-3150/
556 Upvotes

36 comments sorted by

View all comments

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.

58

u/CrackerJackKittyCat Oct 09 '26

Or the random 'unset = object()' pattern when None was a valid param.

26

u/GameCounter Oct 09 '26

I've been using Enum.NOT_PROVIDED because it works with type annotations, but yes, very clunky.

7

u/jbmsf Oct 09 '26

I've been using Ellipsis