12 Feb
2013
12 Feb
'13
6:09 p.m.
On 13/02/13 07:38, Yuval Greenfield wrote:
On Tue, Feb 12, 2013 at 9:58 PM, Ethan Furman
wrote: 1) Magic is fun. :)
I heartily agree. Check this out:
RED, GREEN, BLUE = enum() print(RED, GREEN, BLUE) 0 1 2 LEFT, TOP, RIGHT, DOWN = enum() print(LEFT, TOP, RIGHT, DOWN) 0 1 2 3
And here's the dirty trick....
[snip code] Awesome! :-) -- Steven