Skip to content
Sentinel Values in Python: Why None Is Not Enough (sps26) episode artwork

Oct 22, 2026 34 min

Sentinel Values in Python: Why None Is Not Enough (sps26)

from Chaos Computer Club - recent audio-only feed Hosted by Florian Wilhelm

Every Python developer has used `None` as a default but what happens when `None` is also a valid value? This talk explores sentinel values as a first-class concept in Python. We'll uncover why `None` is semantically overloaded, how built-in sentinels like `NotImplemented` and `...` (Ellipsis) quietly power Python's object model, and what happens when you try to create your own. The central challenge: Python's type system has no good answer for sentinel values. We'll walk through why `Optional`, `Literal`, and custom classes all fall short, look at real-world workarounds including Pydantic's experimental MISSING, and discuss what PEP 661's deferral means for your code today. You'll leave with a clear mental model and practical guidance for handling absence in typed Python. about this event: https://talks.python-summit.ch/swiss-python-summit-2026/talk/JHJ3XY/

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Sentinel Values in Python: Why None Is Not Enough (sps26)

0:00 34:49

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - recent audio-only feed?

This episode is 34 minutes long.

When was this Chaos Computer Club - recent audio-only feed episode published?

This episode was published on October 22, 2026.

Can I download this Chaos Computer Club - recent audio-only feed episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.