Namespaces question

Erno Kuusela erno-news at erno.iki.fi
Tue Mar 27 05:45:43 EST 2001


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




More information about the Python-list mailing list