On Wed, Aug 29, 2012 at 2:16 PM, M.-A. Lemburg <mal at egenix.com> wrote: >>>> locals().update(d) > .. > Not that I'd recommend doing this, but it's possible :-) I don't think this will work inside a function.