Joe wrote: > Thanks, I knew about that but my question is why is it not working > consistently? At the module level, locals() is globals(): py> locals() is globals() True And the globals() dict is modifiable. HTH, STeVe