You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just merged support for PEP-661, which adds the new sentinel() builtin. Let's use it in the standard library so we can simplify some code and stress-test the feature.
We'll have to be careful to preserve compatibility with features such as repr() and boolean values.
Feature or enhancement
Proposal:
I just merged support for PEP-661, which adds the new
sentinel()builtin. Let's use it in the standard library so we can simplify some code and stress-test the feature.We'll have to be careful to preserve compatibility with features such as
repr()and boolean values.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
sentinelinfunctools.rstdocs #149176sentinel()#149213_initial_missingfor pure pyreducetosentinel#149536_initial_missingfor pure pyreducetosentinel(GH-149536) #149592