user-supplied locals dict for function execution?
bruno at modulix
onurb at xiludom.gro
Mon Mar 20 14:43:37 EST 2006
Lonnie Princehouse wrote:
>>What's your use case exactly ?
>
>
> I'm trying to use a function to implicitly update a dictionary.
I think this was pretty obvious. What I wonder is *why* you want/think
you need to do such a thing -I don't mean there can't be no good reason
to do so, but this has to be a pretty uncommon use case, and some of the
gurus here may point you to (possibly other and possibly better)
solutions if you give a bit more context.
And BTW, please, lauch your python shell and type 'import this', then
read carefully.
> The
> whole point is to avoid the normal dictionary semantics,
Yes, but *why ?*
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list