-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Should we use an 'enum' type for enumerated values? #1031
Labels
type: question
Request for information or clarification. Not an issue.
Comments
tseaver
added
the
type: question
Request for information or clarification. Not an issue.
label
Aug 4, 2015
I meant |
Cool. |
@tseaver Can we move forward with this or close it out? |
Our dependencies already pull in |
Spiffy, I'll closet this then and proceed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E.g., wherever the back-end takes a string value, but requires that it be one of a set of known values? Likewise for integers which map protobuf
enum
values.@dhermes suggested using https://pypi.python.org/pypi/enum.
I favor using the PEP-435-compatible https://pypi.python.org/pypi/enum34/, which backports the
enum
from the Python 3.4 stdlib.The text was updated successfully, but these errors were encountered: