Namespaces question

Erno Kuusela erno-news at
Tue Mar 27 12:45:43 CEST 2001

In article <mailman.985627029.26291.python-list at>, Chris
Withers <chrisw at> 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