
Oct. 22, 2003
4:11 a.m.
In article <200310220314.h9M3Euk11066@oma.cosc.canterbury.ac.nz>, Greg Ewing <greg@cosc.canterbury.ac.nz> wrote:
Guido:
def inner(): outer.x = 42
Because this already means something!
Hmmm, maybe
x of outer = 42
Determined-to-get-an-'of'-into-the-language-somehow-ly,
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. -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science