P
Peter Maas
Benji said:45suffix = 'var'
vars()['a%s' % suffix] = 45
avar
Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about
the "vars" built in:
The returned dictionary should not be modified: the effects on the
corresponding symbol table are undefined.
I tried this once and it worked. This may be too naive, so thanks
for the warning