| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
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__.
|
| |
|
|
|
|
|
| |
test_scope:1.8):
SF patch 419176 from MvL; fixed bug 418977
Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
|
| |
|
|
| |
cause the free variables to leak.
|
| | |
|
| |
|
|
| |
functinos and cell vars with */** parameters
|
| |
|
|
| |
Add tests for unbound locals (Nick Mathewson)
|
|
|
New tests cases for nested scopes.
|