b646547bb45fe1df6abefd94f892c633798d91d2 |
|
11-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2333: Backport set and dict comprehensions syntax.
/external/python/cpython2/Lib/compiler/ast.py
|
ee936a21308679654b2d458166ff094ed735fef7 |
|
10-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2335: Backport set literals syntax from Python 3.x.
/external/python/cpython2/Lib/compiler/ast.py
|
b9d4963a989accce30234b7b74bce874c0142209 |
|
05-Jan-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #7092: Fix the DeprecationWarnings emitted by the standard library when using the -3 flag. Patch by Florent Xicluna.
/external/python/cpython2/Lib/compiler/ast.py
|
4219da4bd0bd46733e6c07ea33c57d45e11641cf |
|
25-Feb-2008 |
Facundo Batista <facundobatista@gmail.com> |
Issue 2117. Update compiler module to handle class decorators. Thanks Thomas Herve
/external/python/cpython2/Lib/compiler/ast.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/ast.py
|
b902f4e401bbf5ada3494c4fb7eeab605a370e10 |
|
03-Apr-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Use absolute imports
/external/python/cpython2/Lib/compiler/ast.py
|
39e11fb104a31ae499816b2366af58a5e2b56454 |
|
04-Mar-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/compiler/ast.py
|
fa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c |
|
03-Mar-2006 |
Thomas Wouters <thomas@python.org> |
Add support for absolute/relative imports and if/else expressions: - regenerate ast.py - add future flags for absolute-import and with-statement so they (hopefully) properly get set in code-object flags - try out if/else expressions in actual code for the hell of it. Seems to generate the same kind of bytecode as the normal compiler.
/external/python/cpython2/Lib/compiler/ast.py
|
710ab3b5f8d114b9be200af135c6327117b8c676 |
|
28-Feb-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/compiler/ast.py
|
c2e20744b2b7811632030470971c31630f0975e2 |
|
27-Feb-2006 |
Guido van Rossum <guido@python.org> |
PEP 343 -- the with-statement. This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
/external/python/cpython2/Lib/compiler/ast.py
|
f36947032f4e99b2c55fc25fa36a1960c4423cbb |
|
02-Jun-2005 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Fix compiler.ast.flatten function so that it works on lists.
/external/python/cpython2/Lib/compiler/ast.py
|
0e9980f75a203ee1b2ac28f76a76239446b271d6 |
|
12-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/compiler/ast.py
|
566d934745378df72fbbf7d3f834e7d08f7e42d1 |
|
07-Sep-2004 |
Jeremy Hylton <jeremy@alum.mit.edu> |
compiler.transformer: correct lineno attribute when possible SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception.
/external/python/cpython2/Lib/compiler/ast.py
|
6db15d7307b831766617f6a9700ecc4c75a16081 |
|
04-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/compiler/ast.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/ast.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/ast.py
|
b2f89ee71a494b3b1aaaeef42d2b43bcf50735cd |
|
11-Aug-2003 |
Andrew M. Kuchling <amk@amk.ca> |
Comment typo fixes
/external/python/cpython2/Lib/compiler/ast.py
|
0ac16ec1493e76721d37d537a132195fdb2cbe4f |
|
23-Feb-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #521714: fix pychecker warnings in ast.py.
/external/python/cpython2/Lib/compiler/ast.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/ast.py
|
e0c446bb4ad67294f42d4cb53b4ff28413bd8dde |
|
18-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/compiler/ast.py
|
c8ed18a4e3756f0cccbcddd10323ef536ad003ec |
|
17-Sep-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Re-created after change to astgen to calculate hardest_arg correctly
/external/python/cpython2/Lib/compiler/ast.py
|
fff252d20d634a3c86f06ef8585c3111c1d50091 |
|
15-Sep-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
the names attribute of Global is not a node
/external/python/cpython2/Lib/compiler/ast.py
|
5477f529d6f3b25e51ac6b321a6fe7b28fafe1f4 |
|
29-Aug-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Revise implementations of getChildren() and getChildNodes(). Add support for floor division (// and //=) The implementation of getChildren() and getChildNodes() is intended to be faster, because it avoids calling flatten() on every return value. But it's not clear that it is a lot faster, because constructing a tuple with just the right values ends up being slow. (Too many attribute lookups probably.) The ast.txt file is much more complicated, with funny characters at the ends of names (*, &, !) to indicate the types of each child node. The astgen script is also much more complex, making me wonder if it's still useful.
/external/python/cpython2/Lib/compiler/ast.py
|
ab427b8ccedacf94acdc0149fc8fb24f8c58c272 |
|
18-Aug-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Generate correct reprs for Mul, Add, etc.
/external/python/cpython2/Lib/compiler/ast.py
|
8548f9b1831b995e8b499015ffae87920dd8b8ae |
|
18-Aug-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add Yield() node
/external/python/cpython2/Lib/compiler/ast.py
|
9272b14d62bb7ebb5883085b44d4a0335f230604 |
|
14-Aug-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Fix typo in astgen script
/external/python/cpython2/Lib/compiler/ast.py
|
7713ac2ff1fc2950121007e58eada150f42864d6 |
|
14-Aug-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Regenerated from new ast.txt and new astgen.py
/external/python/cpython2/Lib/compiler/ast.py
|
628d289d121488eb8035d35381ede5ec28561ff1 |
|
25-Oct-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Generated from rev 1.1 of ast.txt
/external/python/cpython2/Lib/compiler/ast.py
|
9c048f9f6565d9a83890d0834f5f9b4be3a7cd8b |
|
13-Oct-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Now supports entire Python 2.0 language and still supports Python 1.5.2. The compiler generates code for the version of the interpreter it is run under. ast.py: Print and Printnl add dest attr for extended print new node AugAssign for augmented assignments new nodes ListComp, ListCompFor, and ListCompIf for list comprehensions pyassem.py: add work around for string-Unicode comparison raising UnicodeError on comparison of two objects in code object's const table pycodegen.py: define VERSION, the Python major version number get magic number using imp.get_magic() instead of hard coding implement list comprehensions, extended print, and augmented assignment; augmented assignment uses Delegator classes (see doc string) fix import and tuple unpacking for 1.5.2 transformer.py: various changes to support new 2.0 grammar and old 1.5 grammar add debug_tree helper than converts and symbol and token numbers to their names
/external/python/cpython2/Lib/compiler/ast.py
|
be317e615e9c25f3f38062266b9b8a7ad86a1c90 |
|
03-May-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
patches from Mark Hammond Attached is a set of diffs for the .py compiler that adds support for the new extended call syntax. compiler/ast.py: CallFunc node gets 2 new children to support extended call syntax - "star_args" (for "*args") and "dstar_args" (for "**args") compiler/pyassem.py It appear that self.lnotab is supposed to be responsible for tracking line numbers, but self.firstlineno was still hanging around. Removed self.firstlineno completely. NOTE - I didnt actually test that the generated code has the correct line numbers!! Stack depth tracking appeared a little broken - the checks never made it beyond the "self.patterns" check - thus, the custom methods were never called! Fixed this. (XXX Jeremy notes: I think this code is still broken because it doesn't track stack effects across block bounaries.) Added support for the new extended call syntax opcodes for depth calculations. compiler/pycodegen.py Added support for the new extended call syntax opcodes. compiler/transformer.py Added support for the new extended call syntax.
/external/python/cpython2/Lib/compiler/ast.py
|
fa974a9d06a216ca55bd81985fe75b17bdc3630a |
|
06-Mar-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
change node Classdef to Class add doc string to transformer module add two helper functions: parse(buf) -> AST parseFile(path) -> AST
/external/python/cpython2/Lib/compiler/ast.py
|
7708d697ee38f5d8c61b88737e941a4d1eb49691 |
|
17-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
add varargs and kwargs flags to Lambda nodes
/external/python/cpython2/Lib/compiler/ast.py
|
ca1ad182f2b9e15fbed62a36b202708c23992dbe |
|
15-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
tidy up tryexcept and tryfinally nodes
/external/python/cpython2/Lib/compiler/ast.py
|
17988d2a175dbf9acade5588a36913c96b591a17 |
|
14-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
LeftShift & RightShift: fix reprs, change attr names to left and right (so they are common with other binary ops)
/external/python/cpython2/Lib/compiler/ast.py
|
bf6267e6f8222dc37d006961b14ef8692ec459d6 |
|
14-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
rename several of the generic attribute names for nodes. new node attrs are: Exec: expr, locals, globals Dict: items Assert: test, fail
/external/python/cpython2/Lib/compiler/ast.py
|
156a9754760585bbf7fbe1d124300bdc1c2b019d |
|
08-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
make all unary operators have a single child node called expr
/external/python/cpython2/Lib/compiler/ast.py
|
9605c11c4c3127e3b1749eb4f65b80e9e7db0d8e |
|
08-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
move constants out of transformer so that they can be shared with ast add varargs and kwargs attributes to Function nodes
/external/python/cpython2/Lib/compiler/ast.py
|
f968e8545d5c7fddca22579aa5914c57620b2cd1 |
|
04-Feb-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
three files from the p2c cvs tree. the message here indicates the revision number the p2c cvs tree. COPYRIGHT: 1.1 ast.py: 1.3 transformer.py: 1.11
/external/python/cpython2/Lib/compiler/ast.py
|