Python 3.15 introduces a new built-in `sentinel()` function for creating sentinel values. Previously, developers used `object()` as a workaround, but this approach and other common sentinel idioms have known shortcomings. PEP 661 documents the motivation behind the new built-in and the problems it solves.

1m read timeFrom mathspp.com
Post cover image
Table of contents
Become the smartest Python 🐍 developer in the room 🚀References

Sort: