Looking for the best way to translate an idiom

James Stroud jstroud at mbi.ucla.edu
Sun Dec 14 20:24:34 EST 2008


James Stroud wrote:
>       inspect.stack()[1][0].f_locals[name] = val

I just double checked this. Because of the way locals are implemented in 
cPython, this won't have the desired affect.

James



More information about the Python-list mailing list