summaryrefslogtreecommitdiffstats
path: root/Lib/symtable.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 70801,70809 via svnmerge fromJeremy Hylton2009-03-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70801 | jeremy.hylton | 2009-03-31 09:17:03 -0400 (Tue, 31 Mar 2009) | 3 lines Add is_declared_global() which distinguishes between implicit and explicit global variables. ........ r70809 | jeremy.hylton | 2009-03-31 09:48:15 -0400 (Tue, 31 Mar 2009) | 14 lines Global statements from one function leaked into parallel functions. Re http://bugs.python.org/issue4315 The symbol table used the same name dictionaries to recursively analyze each of its child blocks, even though the dictionaries are modified during analysis. The fix is to create new temporary dictionaries via the analyze_child_block(). The only information that needs to propagate back up is the names of the free variables. Add more comments and break out a helper function. This code doesn't get any easier to understand when you only look at it once a year. ........
* fix silly errors of mineBenjamin Peterson2008-08-201-3/+3
|
* newSymbolTable is not public APIBenjamin Peterson2008-08-201-3/+2
|
* deprecate some useless, noop methods in symtableBenjamin Peterson2008-08-201-7/+11
|
* get the symtable module back in working orderBenjamin Peterson2008-08-171-28/+25
| | | | | | - Fix broken functions - Add (hopefully) extensive tests - Modernize a little
* Get symtable to limp along, can run compiler/symbols.py. Not saying much, ↵Neal Norwitz2005-11-251-1/+4
| | | | needs more work.
* Replaced .keys() with dictionary iteratorsRaymond Hettinger2002-06-021-1/+1
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-12/+6
|
* Remove now-unnecessary "from __future__ import nested_scopes" stmts.Tim Peters2001-07-121-1/+0
|
* Fix three PyChecker-detected gotchas.Jeremy Hylton2001-04-161-4/+10
| | | | | Import OPT_ symbols from _symtable. Define has_exec() and has_import_star().
* Whitespace normalization.Tim Peters2001-03-291-4/+4
|
* flesh out __all__Jeremy Hylton2001-03-231-14/+6
| | | | | | remove debugging code in if __debug__: add get_children() method on SymbolTable
* First cut at a high-level symbol table interfaceJeremy Hylton2001-03-221-0/+258