changing local namespace of a function
Bo Peng
bpeng at rice.edu
Sat Feb 5 00:54:04 EST 2005
M.E.Farmer wrote:
> I really don't see your need.
Maybe it is just my laziness. It is almost intolerable for me to write
lines and lines of code like
d['z'] = func(d['x']+d['y']+d['whatever']['as']+d[a][0] )
It is ugly, unreadable and error prone. If I have to use this code, I
would write
_z = func(_x + _y + _whatever['as'] + _a[0])
and use a perl script to generate the real code. (See, I am not lazy :-)
Bo
More information about the Python-list
mailing list