summaryrefslogtreecommitdiffstats
path: root/Lib/test/output/test_scope
Commit message (Collapse)AuthorAgeFilesLines
* Backport fixes for two nested scopes bugs.Jeremy Hylton2002-04-201-0/+3
| | | | | | | | | | | | 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__.
* Backport Jeremy's checkins (frameobject.c:2.50, test_scope.py:1.16,Thomas Wouters2001-05-231-0/+1
| | | | | | | test_scope:1.8): SF patch 419176 from MvL; fixed bug 418977 Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
* Backport Jeremy's checkin 1.7:Thomas Wouters2001-05-231-0/+1
| | | | | | | | | | Fix 2.1 nested scopes crash reported by Evan Simpson The new test case demonstrates the bug. Be more careful in symtable_resolve_free() to add a var to cells or frees only if it won't be added under some other rule. XXX Add new assertion that will catch this bug.
* Add tests for recent changes:Jeremy Hylton2001-03-211-0/+2
| | | | | - global stmt in class does not affect free vars in methods - locals() works with free and cell vars
* Add test to verify that nested functions with free variables don'tJeremy Hylton2001-03-131-0/+1
| | | | cause the free variables to leak.
* Test interaction of global and nested scopes -- thanks to Samuele Pedroni.Guido van Rossum2001-03-011-0/+1
|
* update test cases for recent compiler changes: exec/import * in nestedJeremy Hylton2001-02-091-0/+1
| | | | functinos and cell vars with */** parameters
* Fix test 9 (caught by ?!ng)Jeremy Hylton2001-02-051-0/+1
| | | | Add tests for unbound locals (Nick Mathewson)
* PEP 227 implementationJeremy Hylton2001-01-251-0/+13
New tests cases for nested scopes.