[Python-Dev] Enum: subclassing?
Barry Warsaw
barry at python.org
Thu May 2 17:54:00 CEST 2013
More information about the Python-Dev mailing list
Thu May 2 17:54:00 CEST 2013
- Previous message: [Python-Dev] Enum: subclassing?
- Next message: [Python-Dev] Enum: subclassing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 01, 2013, at 03:11 PM, Ethan Furman wrote: >The reason __int__ is there is because pure Enums should be using plain ints >as their value 95% or more of the time, and being able to easily convert to a >real int for either database storage, wire transmission, or C functions is a >Good Thing. But then, Foo.a.value is good enough. -Barry
- Previous message: [Python-Dev] Enum: subclassing?
- Next message: [Python-Dev] Enum: subclassing?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list