This seems great, except why can't I compare strings? It seems too useful when dealing with user input, or parsing messages or config files.
>>> Weekdays = enum('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat')
>>> Weekdays.mon.__cmp__('mon')
0
Additionaly, perhaps the call method of the enumeration object should
construct a value from strings?
>>> Weekdays.mon == Weekdays('mon')
--
http://mail.python.org/mailman/listinfo/python-list
