String changing on the fly
Dave Benjamin
ramen at lackingtalent.com
Mon Oct 25 18:05:28 EDT 2004
In article <1gm8hbm.1r8d77im2uzfkN%aleaxit at yahoo.com>, Alex Martelli wrote:
> 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!
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] -:- spoomusic.com -:- ramenfest.com ]:.
"talking about music is like dancing about architecture."
More information about the Python-list
mailing list