The Python Oracle

How do I test if int value exists in Python Enum without using try/catch?

This video explains
How do I test if int value exists in Python Enum without using try/catch?

--

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

--

Track title: CC C Schuberts Piano Sonata No 13 D

--

Chapters
00:00 Question
00:36 Accepted answer (Score 195)
02:04 Answer 2 (Score 37)
02:59 Answer 3 (Score 26)
03:17 Answer 4 (Score 11)
03:35 Thank you

--

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

Answer 2 links:
[an ordered dictionary mapping names to members]: https://docs.python.org/3/library/enum.h...

--

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

--

Tags
#python #enums