[issue2502] Add enum() example for named tuples

Raymond Hettinger report at bugs.python.org
Sat Mar 29 10:58:03 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Thanks for asking. This should not go into the collections module.

The concept makes more sense in statically compiled languages.  In 
Python, we typically write something like "RED, ORANGE, YELLOW = range
(3)" at the module level.  That is faster and still allows prefixing 
using the module name (for example, re.MULTILINE).

----------
resolution: accepted -> rejected

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2502>
__________________________________


More information about the Python-bugs-list mailing list