The Python Oracle

Getting value of enum on string conversion

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi

--

Chapters
00:00 Question
00:34 Accepted answer (Score 375)
01:33 Answer 2 (Score 24)
01:59 Answer 3 (Score 12)
03:07 Answer 4 (Score 4)
03:44 Thank you

--

Full question
https://stackoverflow.com/questions/2448...

Accepted answer links:
[Programmatic access to enumeration members and their attributes]: https://docs.python.org/3/library/enum.h...

Answer 4 links:
[Enum comparisons]: https://docs.python.org/3/library/enum.h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #enums #python34

#avk47