In article <mailman.985627029.26291.python-list at python.org>, Chris Withers <chrisw at nipltd.com> writes: | What should I be using instead of locals()? you aren't supposed to alter the dictionary returned by locals. try using exec if you really want to do this, although it would probably be better to just put the values in a regular dictionary. -- erno