barry at python.org
Mon Jul 25 19:15:53 CEST 2011
On Jul 24, 2011, at 09:22 PM, Raymond Hettinger wrote:
>I also don't care for enums and recommend against adding them to the
>language. IMO, it is something that makes good sense in statically compiled
>languages and is unnecessary for us. Not to mention, we already have several
>ways to do it (module and class namespaces for example).
IMHO, enums improve readability and debugging. For better integration with
external systems (e.g. databases), enum values are compatible with integers.
<EnumValue: Colors.blue [int=3]>
is much nicer than
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Python-ideas