]> granicus.if.org Git - python/commit
Fix for sibling nodes that define the same free variable
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 27 Aug 2001 21:06:35 +0000 (21:06 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 27 Aug 2001 21:06:35 +0000 (21:06 +0000)
commitcd8a127e1a0dac4a4cd4b12bdffe8a17dd75cef9
tree3deddca983f0d924cf174d2ef21dc1a84967972e
parent7e30c9bb5a6a44829d1df01354523f5c3467583d
Fix for sibling nodes that define the same free variable

Evan Simpson's fix.  And his explanation:

    If you defined two nested functions in a row that refer to the
    same non-global variable, the second one will be generated as
    though the variable were global.
Lib/compiler/symbols.py
Tools/compiler/compiler/symbols.py