Python 3.4.0 introduced
enum, I've read the doc but still don't know the usage of it. From my perspective, enum is an extended
namedtuple type, which may not be true. So these are what I want to know about enum:
- When and where to use enum?
- Why do we need enum? what are the advatages?
- What exactly is enum?