Skip to content

Add support for PEP 661 sentinels #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JelleZijlstra opened this issue May 5, 2025 · 1 comment
Open

Add support for PEP 661 sentinels #591

JelleZijlstra opened this issue May 5, 2025 · 1 comment

Comments

@JelleZijlstra
Copy link
Member

We should add a PEP 661-style Sentinel class; see https://discuss.python.org/t/pep-661-sentinel-values/9126/243

cc @Viicos @taleinat.

(For clarity: I won't work on this myself but I'll review a PR.)

@Viicos
Copy link
Contributor

Viicos commented May 5, 2025

@taleinat I can look at it this week (or when it will be decided whether the module registry is kept) and port your draft implementation linked in the PEP there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants