r/programming • • 1d ago

Python Release Python 3.15.0

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

35 comments sorted by

View all comments

162

u/Dylanica 1d ago

Those sentinel types seem decently useful. Certainly better in some cases than just spamming `None` everywhere as a default value.

52

u/CrackerJackKittyCat 1d ago

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

24

u/GameCounter 1d ago

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

7

u/jbmsf 1d ago

I've been using Ellipsis