The Daily Commit · Section Edition Front Page PHP AI Dev EN DE FR ES

Independent. Nonpartisan. Untested in production.

Friday, October 9, 2026 R/PROGRAMMING (TOP)
Reads!

Python 3.15.0 puts sentinel types in the spotlight

A Reddit thread links to the official Python 3.15.0 release page.

R/PROGRAMMING (TOP) — The discussion focuses on sentinel types for APIs that need to distinguish a missing argument from an explicit None value. Commenters call the `unset = object()` workaround clunky and note Enum.NOT_PROVIDED as a typed alternative. Lazy imports also draw praise in the thread.

The new material in the thread is a link to the official Python 3.15.0 page on python.org. The excerpt does not reproduce the release notes.

Comments focus on sentinel types as a way to avoid using None as a default when None itself is a valid argument. This approach replaces ad hoc markers like `unset = object()`. Readers split on readability: Enum.NOT_PROVIDED works with type annotations, yet several commenters find it clunky. Lazy imports also get praise in the thread. A separate remark pictures sentinel values replacing StopIteration for iterators in an alternate design.

Read the original source ↗

Rate this article: 0

Readers’ Forum

No contributions yet — open the debate.

◀ Briefs — Page D1

All stories real, just louder · The Daily Commit · Screen edition · Imprint · Privacy Policy