String changing on the fly

Dave Benjamin ramen at
Tue Oct 26 00:05:28 CEST 2004

In article <1gm8hbm.1r8d77im2uzfkN%aleaxit at>, Alex Martelli wrote:
> Dave Benjamin <ramen at> 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!

Eight characters, Alex! Ten, if you consider the comma and space. =)

>> (but of course it still feels dirty)
> So don't do it!-)

These were my younger days, of course...

 .:[ dave benjamin: ramen/[sp00] -:- -:- ]:.
        "talking about music is like dancing about architecture."

More information about the Python-list mailing list