Skip to content

Use PEP 661 (sentinels) in the standard library #149083

@JelleZijlstra

Description

@JelleZijlstra

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

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-refactorCode refactoring (with no changes in behavior)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions