Hacker News new | past | comments | ask | show | jobs | submit login

The aliases aren't part of the enum, if you think of the enum as a set of values. Iterating is done on the values, not the names.

(the next paragraph gives you the __members__ ordered dict, if you want to iterate on something else)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: