changing local namespace of a function
Bo Peng
bpeng at rice.edu
Fri Feb 4 19:53:46 EST 2005
Jeff Shannon wrote:
>
> This sounds to me like you're trying to re-implement object orientation.
>
I have no control over the big dictionaries. All I need to do is
processing them in situ --- that is to say, go into each map and
manipulate numbers. Parameter passing should be avoid whenever possible
since involved number of items are huge.
It is basically like
exec 'statements' in d
but a function with local dictionary d would be best.
Bo
More information about the Python-list
mailing list