| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | backport fix for SF buf #505315 from trunk | Jeremy Hylton | 2002-04-20 | 1 | -0/+10 |
| | | |||||
| * | SF #506611, fix sys.setprofile(), sys.settrace() core dumps | Neal Norwitz | 2002-03-03 | 1 | -0/+4 |
| | | | | | when no arguments are passed | ||||
| * | Don't call resetwarnings(). Be more restrictive in what we filter out | Guido van Rossum | 2001-12-15 | 1 | -3/+1 |
| | | | | | instead. | ||||
| * | Undo inadvertent change to test_scope in previous checkin | Jeremy Hylton | 2001-12-13 | 1 | -2/+1 |
| | | |||||
| * | Add test for SF bug [ #492403 ] exec() segfaults on closure's func_code | Jeremy Hylton | 2001-12-13 | 1 | -2/+10 |
| | | |||||
| * | Add test for local assigned to only in a nested list comp | Jeremy Hylton | 2001-10-18 | 1 | -0/+18 |
| | | |||||
| * | test_support should be imported directly, not via test.test_support. | Tim Peters | 2001-09-25 | 1 | -1/+1 |
| | | |||||
| * | silence warnings about import * | Jeremy Hylton | 2001-08-07 | 1 | -0/+7 |
| | | |||||
| * | Fix for SF bug [ #443866 ] Evaluating func_code causing core dump | Jeremy Hylton | 2001-07-30 | 1 | -0/+13 |
| | | | | | Add test that calls eval with a code object that has free variables. | ||||
| * | Remove now-unnecessary "from __future__ import nested_scopes" stmts. | Tim Peters | 2001-07-12 | 1 | -8/+6 |
| | | |||||
| * | SF patch 419176 from MvL; fixed bug 418977 | Jeremy Hylton | 2001-05-08 | 1 | -0/+20 |
| | | | | | Two errors in dict_to_map() helper used by PyFrame_LocalsToFast(). | ||||
| * | Fix 2.1 nested scopes crash reported by Evan Simpson | Jeremy Hylton | 2001-04-27 | 1 | -0/+11 |
| | | | | | | | | | 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. | ||||
| * | Change error message raised when free variable is not yet bound. It | Jeremy Hylton | 2001-04-13 | 1 | -1/+2 |
| | | | | | | | | | | now raises NameError instead of UnboundLocalError, because the var in question is definitely not local. (This affects test_scope.py) Also update the recent fix by Ping using get_func_name(). Replace tests of get_func_name() return value with call to get_func_desc() to match all the other uses. | ||||
| * | Add tests for recent changes: | Jeremy Hylton | 2001-03-21 | 1 | -0/+30 |
| | | | | | | - global stmt in class does not affect free vars in methods - locals() works with free and cell vars | ||||
| * | Whitespace normalization. | Tim Peters | 2001-03-16 | 1 | -3/+2 |
| | | |||||
| * | Add test to verify that nested functions with free variables don't | Jeremy Hylton | 2001-03-13 | 1 | -0/+23 |
| | | | | | cause the free variables to leak. | ||||
| * | Test interaction of global and nested scopes -- thanks to Samuele Pedroni. | Guido van Rossum | 2001-03-01 | 1 | -0/+65 |
| | | |||||
| * | add from __future__ import nested_scopes to strings passed to compile | Jeremy Hylton | 2001-02-27 | 1 | -6/+12 |
| | | |||||
| * | Preliminary support for future nested scopes | Jeremy Hylton | 2001-02-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1 __future__ feature name: "nested_scopes" symtable.h: Add st_nested_scopes slot. Define flags to track exec and import star. Lib/test/test_scope.py: requires nested scopes compile.c: Fiddle with error messages. Reverse the sense of ste_optimized flag on PySymtableEntryObjects. If it is true, there is an optimization conflict. Modify get_ref_type to respect st_nested_scopes flags. Refactor symtable_load_symbols() into several smaller functions, which use struct symbol_info to share variables. In new function symtable_update_flags(), raise an error or warning for import * or bare exec that conflicts with nested scopes. Also, modify handle for free variables to respect st_nested_scopes flag. In symtable_init() assign st_nested_scopes flag to NESTED_SCOPES_DEFAULT (defined in compile.h). Add preliminary and often incorrect implementation of symtable_check_future(). Add symtable_lookup() helper for future use. | ||||
| * | Add test for syntax error on "x = 1 + 1". | Jeremy Hylton | 2001-02-19 | 1 | -9/+1 |
| | | | | | Move check_syntax() function into test_support. | ||||
| * | Whitespace normalization. | Tim Peters | 2001-02-15 | 1 | -4/+4 |
| | | |||||
| * | update test cases for recent compiler changes: exec/import * in nested | Jeremy Hylton | 2001-02-09 | 1 | -21/+64 |
| | | | | | functinos and cell vars with */** parameters | ||||
| * | Whitespace normalization. | Tim Peters | 2001-02-09 | 1 | -6/+5 |
| | | |||||
| * | Fix test 9 (caught by ?!ng) | Jeremy Hylton | 2001-02-05 | 1 | -1/+30 |
| | | | | | Add tests for unbound locals (Nick Mathewson) | ||||
| * | Fix test for free ref to global. This test should have caught a | Jeremy Hylton | 2001-01-30 | 1 | -1/+1 |
| | | | | | recently fixed bug, but it checked for the wrong answer. | ||||
| * | PEP 227 implementation | Jeremy Hylton | 2001-01-25 | 1 | -0/+249 |
| New tests cases for nested scopes. | |||||
