[Python-Dev] statically nested scopes

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 02 Nov 2000 13:37:00 +1300 (NZDT)


"M.-A. Lemburg" <mal@lemburg.com>:

> The problem is that with nested scoping, a function defined
> within another function will suddenly reference the variables
> of the enclosing function

This could be avoided by requiring that variables which are
to be visible in an inner scope be marked somehow in the
scope where they are defined.

I don't think it's a serious enough problem to be worth
fixing that way, though.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+