May 14, 2013
11:24 p.m.
On 05/14/2013 04:19 PM, Steven D'Aprano wrote:
For many purposes, we won't even care about the container. We'll do something like this:
Directions = Enum("Directions", "UP DOWN LEFT RIGHT") globals().update(Directions.members())
(have I got the name "members" right?)
Almost. It's __members__. -- ~Ethan~