You might be able to do something along the lines of

for count in range(0,maxcount):
  value = values[count]
  exec(eval("'a%s=%s' % (count, value)"))
 
But I am also wonder: why? 

Peter Maas wrote: 
> >>>suffix = 'var' 
> >>>vars()['a%s' % suffix] = 45 
> >>>avar 
>45 
 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to