[Python-Dev] Scoping (corner cases)

Jeremy Hylton jeremy@alum.mit.edu
Fri, 16 Mar 2001 21:16:23 -0500 (EST)


>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes:

  >> Can we come up with a consistent story on class scopes for 2.1?

  GvR> They are consistent with all past versions of Python.

Phew!

  GvR> Class scopes don't work like function scopes -- they use
  GvR> LOAD_NAME and STORE_NAME.

Class scopes are also different because a block's free variables are
not resolved in enclosing class scopes.  We'll need to make sure the
doc says that class scopes and function scopes are different.

Jeremy