summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.2Benjamin Peterson2012-03-121-6/+0
|\
| * kill this disabled codeBenjamin Peterson2012-03-121-6/+0
| |
* | merge 3.2Benjamin Peterson2012-03-121-2/+2
|\ \ | |/
| * use correct naming conventionBenjamin Peterson2012-03-121-2/+2
| |
* | Basic support for PEP 414 without docs or tests.Armin Ronacher2012-03-041-0/+3
| |
* | fix indentationBenjamin Peterson2012-01-161-5/+5
| |
* | break out switch at correct placeBenjamin Peterson2012-01-161-1/+1
| |
* | only finish error if one occurredBenjamin Peterson2012-01-161-1/+2
| |
* | move LINENO define to where it actually belongsBenjamin Peterson2012-01-161-4/+0
| |
* | streamline normalizer identification a bitBenjamin Peterson2012-01-161-25/+55
| |
* | fix spellingBenjamin Peterson2012-01-161-1/+1
| |
* | invert condition (head bang)Benjamin Peterson2012-01-161-1/+1
| |
* | fix possible refleaksBenjamin Peterson2012-01-161-2/+4
| |
* | use helpful PyUnicode_IS_ASCII macroBenjamin Peterson2012-01-161-1/+1
| |
* | PyUnicode_DecodeUTF8 will always return a ready stringBenjamin Peterson2012-01-161-1/+2
| |
* | rewrite such that this actually makes senseBenjamin Peterson2012-01-161-1/+1
| |
* | make YieldFrom its own distinct from Yield (closes #13780)Benjamin Peterson2012-01-141-1/+7
| |
* | Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-131-5/+16
| |
* | Issue #13748: Raw bytes literals can now be written with the `rb` prefix as ↵Antoine Pitrou2012-01-121-7/+12
| | | | | | | | well as `br`.
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-1/+2
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-37/+24
| |
* | add a AST validator (closes #12575)Benjamin Peterson2011-08-091-4/+482
| |
* | merge 3.2Benjamin Peterson2011-06-211-1/+1
|\ \ | |/
| * fix indentationBenjamin Peterson2011-06-211-1/+1
| |
* | unify TryExcept and TryFinally (closes #12199)Benjamin Peterson2011-05-291-18/+4
| |
* | reflect with statements with multiple items in the AST (closes #12106)Benjamin Peterson2011-05-271-27/+16
| |
* | merge 3.2Benjamin Peterson2011-04-121-0/+1
|\ \ | |/
| * merge 3.1Benjamin Peterson2011-04-121-0/+1
| |\
| | * make assigning to a bytes literal a syntax error (closes #11506)Benjamin Peterson2011-04-121-0/+1
| | |
| | * Recorded merge of revisions 85569-85570 via svnmerge fromVictor Stinner2010-10-191-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85569 | victor.stinner | 2010-10-16 15:14:10 +0200 (sam., 16 oct. 2010) | 4 lines Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode. ........ r85570 | victor.stinner | 2010-10-16 15:42:53 +0200 (sam., 16 oct. 2010) | 4 lines Fix ast_error_finish() and err_input(): filename can be NULL Fix my previous commit (r85569). ........
| | * Merged revisions 84214 via svnmerge fromAmaury Forgeot d'Arc2010-08-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84214 | amaury.forgeotdarc | 2010-08-19 23:32:38 +0200 (jeu., 19 août 2010) | 3 lines Add tests for r84209 (crashes in the Ast builder) Also remove one tab, and move a check closer to the possible failure. ........
| | * Merged revisions 84209 via svnmerge fromAmaury Forgeot d'Arc2010-08-191-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84209 | amaury.forgeotdarc | 2010-08-19 19:43:15 +0200 (jeu., 19 août 2010) | 5 lines Check the return values for all functions returning an ast node. Failure to do it may result in strange error messages or even crashes, in admittedly convoluted cases that are normally syntax errors, like: def f(*xx, __debug__): pass ........
| | * Revert r82044, since it changed the semantics of negated imaginary literals.Mark Dickinson2010-06-301-0/+26
| | | | | | | | | | | | | | | Before r82044, '-7j' became complex(0.0, -7.0); afterwards it was complex(-0.0, -7.0). See issue 9011.
| | * Merged revisions 82043 via svnmerge fromMark Dickinson2010-06-171-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82043 | mark.dickinson | 2010-06-17 13:33:22 +0100 (Thu, 17 Jun 2010) | 6 lines Issue #9011: Remove buggy and unnecessary ST->AST compilation code dealing with unary minus applied to a constant. The removed code was mutating the ST, causing a second compilation to fail. (The peephole optimizer already takes care of optimizing this case, so there's no lost optimization opportunity here.) ........
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-94/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
| | * Merged revisions 75928 via svnmerge fromBenjamin Peterson2009-10-291-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r75928 | benjamin.peterson | 2009-10-28 16:59:39 -0500 (Wed, 28 Oct 2009) | 5 lines in wide builds, avoid storing high unicode characters from source code with surrogates This is accomplished by decoding with utf-32 instead of utf-16 on all builds. The patch is by Adam Olsen. ........
| | * Merged revisions 75224 via svnmerge fromBenjamin Peterson2009-10-031-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75224 | benjamin.peterson | 2009-10-03 15:27:13 -0500 (Sat, 03 Oct 2009) | 9 lines Merged revisions 75223 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75223 | benjamin.peterson | 2009-10-03 15:23:24 -0500 (Sat, 03 Oct 2009) | 1 line #7050 fix a SystemError when using tuple unpacking and augmented assignment ........ ................
* | | Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-221-1/+0
|/ /
* | Remove redundant includes of headers that are already included by Python.h.Georg Brandl2010-11-301-1/+0
| |
* | Fix ast_error_finish() and err_input(): filename can be NULLVictor Stinner2010-10-161-1/+6
| | | | | | | | Fix my previous commit (r85569).
* | Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner2010-10-161-1/+6
| | | | | | | | | | filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.
* | add column offset to all syntax errorsBenjamin Peterson2010-09-201-3/+8
| |
* | Add tests for r84209 (crashes in the Ast builder)Amaury Forgeot d'Arc2010-08-191-3/+3
| | | | | | | | Also remove one tab, and move a check closer to the possible failure.
* | Check the return values for all functions returning an ast node.Amaury Forgeot d'Arc2010-08-191-26/+27
| | | | | | | | | | | | Failure to do it may result in strange error messages or even crashes, in admittedly convoluted cases that are normally syntax errors, like: def f(*xx, __debug__): pass
* | Issue #9011: Remove buggy and unnecessary ST->AST compilation codeMark Dickinson2010-06-171-26/+0
| | | | | | | | | | | | | | dealing with unary minus applied to a constant. The removed code was mutating the ST, causing a second compilation to fail. (The peephole optimizer already takes care of optimizing this case, so there's no lost optimization opportunity here.)
* | Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-95/+95
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* | in wide builds, avoid storing high unicode characters from source code with ↵Benjamin Peterson2009-10-281-9/+14
| | | | | | | | | | | | | | surrogates This is accomplished by decoding with utf-32 instead of utf-16 on all builds. The patch is by Adam Olsen.
* | Issue 7147 - remove ability to attempt to build Python without complex ↵Skip Montanaro2009-10-181-6/+0
| | | | | | | | number support (was broken anyway)
* | Merged revisions 75223 via svnmerge fromBenjamin Peterson2009-10-031-0/+13
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75223 | benjamin.peterson | 2009-10-03 15:23:24 -0500 (Sat, 03 Oct 2009) | 1 line #7050 fix a SystemError when using tuple unpacking and augmented assignment ........