13 Feb
2013
13 Feb
'13
12:05 p.m.
On Feb 13, 2013, at 12:59 AM, Georg Brandl wrote:
>>> from flufl.enum import make >>> make('Colors', 'RED GREEN BLUE'.split()) <Colors {RED: 1, GREEN: 2, BLUE: 3}>
And like namedtuple, it's ugly as hell :)
Suggestions for a better repr are welcome. ;) -Barry