Show HN: Pre Python 3.15 PEP 661 compat-sentinel
Category: library
Tags: python, backport, pep-661, sentinel, compatibility
Score: 4.5/10 (Innovation: 3, Technical: 5, Documentation: 6, Utility: 4)
A back-port of Python 3.15's PEP 661 sentinel builtin for Python 3.10+, providing cross-version compatible unique sentinel objects for tri-state defaults and optional parameters. It notably includes a rigorous contract test suite and publicly calls out a competing backport that fails the spec, making it a carefully-engineered compatibility shim.
Target audience: Python library authors and backend developers
Repository: https://pypi.org/project/compat-sentinel/ · Python · MIT · 3 stars
View on Hacker News