summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-7/+11
|\ | | | | | | and a full traceback including line number.
| * Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxErrorSerhiy Storchaka2013-02-101-7/+11
| | | | | | | | and a full traceback including line number.
* | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
|\ \ | |/ | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
| | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
* | Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson2012-11-251-2/+1
| |
* | Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵Christian Heimes2012-09-101-0/+1
|\ \ | |/ | | | | going out of scope leaks the storage it points to.
| * Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵Christian Heimes2012-09-101-0/+1
| | | | | | | | going out of scope leaks the storage it points to.
* | merge 3.2Benjamin Peterson2012-09-021-2/+2
|\ \ | |/
| * put * in the normal placeBenjamin Peterson2012-09-021-2/+2
| |
* | get rid of ast_error_finish by passing the compiling struct to ast_errorBenjamin Peterson2012-09-021-118/+72
| |
* | merge 3.2Benjamin Peterson2012-09-021-2/+2
|\ \ | |/
| * move variable decl to the top of the functionBenjamin Peterson2012-09-021-2/+2
| |
* | merge 3.2 (#15846)Benjamin Peterson2012-09-021-0/+8
|\ \ | |/
| * prevert ast errors from being normalized before ast_error_finish is called ↵Benjamin Peterson2012-09-021-0/+8
| | | | | | | | (closes #15846)
* | Check return value of asdl_seq_new(). Found by Coverity.Stefan Krah2012-08-201-0/+2
| |
* | 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.) ........