]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport fixes for two nested scopes bugs.
authorJeremy Hylton <jeremy@alum.mit.edu>
Sat, 20 Apr 2002 18:21:29 +0000 (18:21 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Sat, 20 Apr 2002 18:21:29 +0000 (18:21 +0000)
commitf599b7424db923cde691f733b79dd24ebe814419
treefcc8394380071b29dd5ffa03d5d1a2b76cf8fe5a
parent402a928ed3b479b6494bdd63c55c29cd3847b57a
Backport fixes for two nested scopes bugs.

frameobject.c: make sure free and cell vars make it into locals, which
    makes eval work.

bltinmodule.c & ceval.c: make sure a code object with free variables
    that is passed to exec or eval raises an exception.

Also duplicate the current trunk test suite in the 2.1 branch, except
for certain necessary changes: different warnings raised by 2.1, need
for __future__.
Include/compile.h
Lib/test/output/test_scope
Lib/test/test_scope.py
Objects/frameobject.c
Python/bltinmodule.c
Python/ceval.c