Real Python

Get Your Code: Click here to download the free sample code you’ll use to create sentinel values with Python 3.15’s new sentinel built-in and retire the unreadable object() idiom.

Almost there! Complete this form and click the button below to gain instant access:

A person with purple hair holds a notebook and slots a card labeled MISSING into a large machine that feeds out long paper printouts, beside control panels and a Python logo.

Python 3.15 Preview: Sentinel Values (Sample Code)

🔒 No spam. We take your privacy seriously.

© 2012–2026 Real Python ⋅ Privacy Policy