]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fixup handling of free variables in methods when the class scope also
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 20 Mar 2001 00:25:43 +0000 (00:25 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 20 Mar 2001 00:25:43 +0000 (00:25 +0000)
commitce7ef599d2df7c43f8228f22a77de4554039dc0f
tree448f981095e78aa66180a78910a2a9c1b9e13ce0
parente241e29f3d0c4a2e4c7beee018ae409beb4239de
Fixup handling of free variables in methods when the class scope also
has a binding for the name.  The fix is in two places:

  - in symtable_update_free_vars, ignore a global stmt in a class scope
  - in symtable_load_symbols, add extra handling for names that are
    defined at class scope and free in a method

Closes SF bug 407800
Python/compile.c