Uwe Schmitt wrote: > > Hi, > > i there a nice python shortcut for: > > if idx=0: > a=val > elif idx=1: > b=val > > <SNIP> How about... varlist = ["a", "b"] ... whatever code you need to get idx and val ready ... exec varlist[idx] + "=val" ------------------------------------------------------------------------------ Tim Daneliuk tundra at tundraware.com