Skip to content

Add an ordered StrEnum variant #141123

@placTc

Description

@placTc

Feature or enhancement

Proposal:

I've had a reason to use modified StrEnums ordered in the order of declaration of enum values to easily describe objects like string-named permissions. I think adding it as a base option for enums or as a decorator for StrEnums in the stdlib would be great

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions