Adding support for binding StrEnums
#1360
nicholasjng
started this conversation in
Ideas
Replies: 2 comments
-
|
It sounds useful but (as usual) depends on how complex the change is. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Done in #1361. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I have a patch on hand for binding a C++ enum as a
StrEnumin Python, and I'm wondering if there's interest in adding it.Since
StrEnumis a Python 3.11 addition, for Python 3.9 and 3.10 the class inherits from(str, Enum)instead, which for my purposes is the same behavior. I opted for this rather than restricting the feature to Python 3.11+, which as far as I know has no precedent anyway.Beta Was this translation helpful? Give feedback.
All reactions