Peter Maas wrote: > >>> suffix = 'var' > >>> vars()['a%s' % suffix] = 45 > >>> avar > 45
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. -- Benji York -- http://mail.python.org/mailman/listinfo/python-list