String changing on the fly

Alex Martelli aleaxit at yahoo.com
Mon Oct 25 22:43:36 CEST 2004


Dave Benjamin <ramen at lackingtalent.com> wrote:
   ...
> If you've got a lot of dictionary construction and deconstruction to do,
> this simple trick can save a lot of {'redundant': redundant,
> 'mapping': mapping} between locals and dictionaries.

Nah -- just pass in locals() as an argument!

> (but of course it still feels dirty)

So don't do it!-)


Alex



More information about the Python-list mailing list