• Jeremy Hylton's avatar
    Backport fixes for two nested scopes bugs. · f599b742
    Jeremy Hylton yazdı
    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__.
    f599b742
test_scope.py 9.27 KB