In article 200310220314.h9M3Euk11066@oma.cosc.canterbury.ac.nz, Greg Ewing email@example.com wrote:
def inner(): outer.x = 42
Because this already means something!
x of outer = 42
scope(outer).x = 42
Almost implementable now by using the inspect module to find the first matching scope, except that inspect can't change the local variable values, only look at them.