On 29.08.12 21:20, Steven D'Aprano wrote: > But once you have multiple > targets, > it gets ugly soon, e.g. the typical enumeration (anti-)pattern: > > RED, YELLOW, BLUE, GREEN = 'RED', 'YELLOW', 'BLUE', 'GREN' for n in 'RED', 'YELLOW', 'BLUE', 'GREN': globals()[n] = n