Namespaces question

Erno Kuusela erno-news at erno.iki.fi
Tue Mar 27 12:45:43 CEST 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