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
need StrEnum in enum.py #85982
Comments
Due to the nature of class MyStrEnum(str, Enum):
tuple = 'oops',
okay = 'correct' >>> list(MyStrEnum)
[<MyStrEnum.tuple: "('oops',)">, MyStrEnum.okay: 'correct'>] The StrEnum class will have a check to ensure that each value was already a string, or can be converted to a string via str(bytes, encoding, errors) |
From Serhiy Storchaka: |
Thank you for your help, Serhiy! |
StrEnum
#22337StrEnum.__str__
isstr.__str__
#22362Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: