History log of /external/python/cpython2/Lib/compiler/symbols.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e970dc757cc2795e5dabf542fd002b540b3d7bc2 02-Jul-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
/external/python/cpython2/Lib/compiler/symbols.py
92c3b2190bae6dd7844c83b6acefc0b89d2bc225 07-Feb-2009 Neil Schemenauer <nascheme@enme.ucalgary.ca> Issue #999042: The Python compiler now handles explict global statements
correctly (should be assigned using STORE_GLOBAL opcode). This was done by
having the system table differentiate between explict and implicit globals.
/external/python/cpython2/Lib/compiler/symbols.py
2d2fe572a4605d3c25055717c1033589e2889e65 15-Dec-2008 Georg Brandl <georg@python.org> #4578: fix has_key() usage in compiler package.
/external/python/cpython2/Lib/compiler/symbols.py
4c6b0d5bec587770e0d83b550faae97fe251cc65 17-Aug-2006 Neil Schemenauer <nascheme@enme.ucalgary.ca> Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
/external/python/cpython2/Lib/compiler/symbols.py
6aaccc6b55a684771abfdad74bea742c25ded506 11-Jun-2006 Neal Norwitz <nnorwitz@gmail.com> Fix errors found by pychecker
/external/python/cpython2/Lib/compiler/symbols.py
f9232678aede501ea6cde3bbbcb08de068c16153 25-Nov-2005 Neal Norwitz <nnorwitz@gmail.com> Use sorted() builtin
/external/python/cpython2/Lib/compiler/symbols.py
c2a5a636545a88f349dbe3e452ffb4494b68e534 02-Aug-2004 Anthony Baxter <anthonybaxter@gmail.com> PEP-0318, @decorator-style. In Guido's words:
"@ seems the syntax that everybody can hate equally"
Implementation by Mark Russell, from SF #979728.
/external/python/cpython2/Lib/compiler/symbols.py
4e0e1b6a540e664e89739456db4c706701bf062b 07-Jul-2004 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/compiler/symbols.py
354433a59dd1701985ec8463ced25a967cade3c1 19-May-2004 Raymond Hettinger <python@rcn.com> SF patch #872326: Generator expression implementation
(Code contributed by Jiwon Seo.)

The documentation portion of the patch is being re-worked and will be
checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's
rationale for the design decisions on binding behavior (as described in
in his patch comments and in discussions on python-dev).

The test file, test_genexps.py, is written in doctest format and is
meant to exercise all aspects of the the patch. Further additions are
welcome from everyone. Please stress test this new feature as much as
possible before the alpha release.
/external/python/cpython2/Lib/compiler/symbols.py
ead21f596ce9c3f3ed3349bdf872182a1e930ca0 28-Aug-2003 Jeremy Hylton <jeremy@alum.mit.edu> Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py

Bug fix candidate.
/external/python/cpython2/Lib/compiler/symbols.py
accb62b28e1d592733b2f678d5737ca3e8c64fc2 31-Dec-2002 Jeremy Hylton <jeremy@alum.mit.edu> SF patch [ 597919 ] compiler package and SET_LINENO

A variety of changes from Michael Hudson to get the compiler working
with 2.3. The primary change is the handling of SET_LINENO:

# The set_lineno() function and the explicit emit() calls for
# SET_LINENO below are only used to generate the line number table.
# As of Python 2.3, the interpreter does not have a SET_LINENO
# instruction. pyassem treats SET_LINENO opcodes as a special case.

A few other small changes:
- Remove unused code from pycodegen and pyassem.
- Fix error handling in parsermodule. When PyParser_SimplerParseString()
fails, it sets an exception with detailed info. The parsermodule
was clobbering that exception and replacing it was a generic
"could not parse string" exception. Keep the original exception.
/external/python/cpython2/Lib/compiler/symbols.py
52acb49298fd0aee8a2a2a352f0b2ab039649bde 21-Dec-2001 Barry Warsaw <barry@python.org> Merge of the release22 branch changes back into the trunk.
/external/python/cpython2/Lib/compiler/symbols.py
e0c446bb4ad67294f42d4cb53b4ff28413bd8dde 18-Oct-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/compiler/symbols.py
652a22437a973dddef7f82d0cc8271d60da7de36 15-Sep-2001 Jeremy Hylton <jeremy@alum.mit.edu> The object-being sliced in an assignment to a slice is referenced, not
bound.

When a Yield() node is visited, assign to the generator attribute of
the scope, not the visitor.
/external/python/cpython2/Lib/compiler/symbols.py
d4be10dc2c8454779e1f84cf9d1ab04daf310719 29-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add generator detection to symbol table.

Fix bug in handling of statements like "l[x:y] = 2". The visitor was
treating this as assignments to l, x, and y!
/external/python/cpython2/Lib/compiler/symbols.py
c59e22000082722655517942d7662eec5a4a70ce 28-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Handle private names

(Hard to believe these were never handled before)

Add misc.mangle() that mangles based on the rules in compile.c.
XXX Need to test the corner cases

Update CodeGenerator with a class_name attribute bound to None. If a
particular instance is created within a class scope, the instance's
class_name is bound to that class's name.

Add mangle() method to CodeGenerator that mangles if the class_name
has a class_name in it.

Modify the FunctionCodeGenerator family to handle an extra argument--
the class_name.

Wrap all name ops and attrnames in calls to self.mangle()
/external/python/cpython2/Lib/compiler/symbols.py
cd8a127e1a0dac4a4cd4b12bdffe8a17dd75cef9 27-Aug-2001 Jeremy Hylton <jeremy@alum.mit.edu> Fix for sibling nodes that define the same free variable

Evan Simpson's fix. And his explanation:

If you defined two nested functions in a row that refer to the
same non-global variable, the second one will be generated as
though the variable were global.
/external/python/cpython2/Lib/compiler/symbols.py
5c9aad6043724148f2159191cf14d751c6ec44d2 12-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> Only treat an AugAssign as def if its the target is a Name.
Fixes last bug found with test_scope.py.
/external/python/cpython2/Lib/compiler/symbols.py
364f9b9e2f798e4d28ed21122faffb030a6ccac5 12-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> Preliminary support for nested scopes

XXX Still doesn't work right for classes
XXX Still doesn't do sufficient error checking
/external/python/cpython2/Lib/compiler/symbols.py
dbdb28e8be50608287b3cfaf8427d7e602f22c2b 09-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add globals to list of names returned by get_names().
Fix func arg processing to handle args in tuples.
In test code, skip names beginning with '.'.
/external/python/cpython2/Lib/compiler/symbols.py
f870c952f96c72cc23fa75a1ce48418c71fbf76e 09-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add two arguments to Scope constructor, module scope and class name
Add mangling support
Add get_children() and add_child() methods to Scope
Skip nodes when If test is a false constant
Add test code that checks results against symtable module
/external/python/cpython2/Lib/compiler/symbols.py
8b966dcf0328c20e58a728f8ade279543c40dbc4 09-Apr-2001 Jeremy Hylton <jeremy@alum.mit.edu> Add preliminary module symbol table constructor
/external/python/cpython2/Lib/compiler/symbols.py