summaryrefslogtreecommitdiffstats
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
* Do not reset the line number because we already set file position to correctSerhiy Storchaka2014-01-091-8/+0
| | | | | | value. (fixes error in patch for issue #18960)
* Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-4/+22
| | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
* #18803: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-251-1/+1
|
* Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails.Christian Heimes2013-08-061-5/+17
|
* Silence warning about set but unused variable inside compile_atom() in ↵Christian Heimes2013-07-311-0/+1
| | | | non-debug builds
* Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().Christian Heimes2013-07-261-3/+7
|
* Parser/asdl_c.py: use Py_CLEAR()Victor Stinner2013-07-261-2/+1
|
* According to the PEP 7, C code must "use 4-space indents"Victor Stinner2013-07-261-1/+1
| | | | Replace 8 spaces with 4.
* Some compilers complain about 'control reaches end of non-void function'Christian Heimes2013-07-221-0/+1
| | | | because they don't understand that Py_FatalError() terminates the program.
* Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens ↵Christian Heimes2013-07-221-1/+4
| | | | | | | when debugging a new grammar. CID 715360
* move declaration to top of blockBenjamin Peterson2013-07-161-1/+2
|
* check the return value of new_string() (closes #18470)Benjamin Peterson2013-07-161-36/+46
|
* Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka2013-06-091-7/+7
| | | | encoding now always contains an encoding name.
* Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson2012-11-251-1/+1
|
* - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed.Matthias Klose2012-10-211-1/+0
|\
* \ #15923: merge with 3.2.Ezio Melotti2012-09-301-1/+1
|\ \ | |/
| * #15923: fix a mistake in asdl_c.py that resulted in a TypeError after ↵Ezio Melotti2012-09-301-1/+1
| | | | | | | | 2801bf875a24 (see #15801).
| * Remove unused variables in parsetok().Georg Brandl2012-08-111-2/+1
| |
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵Antoine Pitrou2012-09-201-1/+1
| | | | | | | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka.
* | MERGE: Closes #15512: Correct __sizeof__ support for parserJesus Cea2012-08-031-0/+26
|\ \ | |/
| * Closes #15512: Correct __sizeof__ support for parserJesus Cea2012-08-031-0/+26
| |
| * Issue #1677: Unused variable warning in Non-WindowsJesus Cea2012-07-031-1/+4
| |
| * Issue #1677: Handle better a race condition between the interactive ↵Tim Golden2012-06-291-22/+15
| | | | | | | | | | | | interpreter and the Ctrl-C signal handler on Windows
* | construct fields in the right order (closes #15517)Benjamin Peterson2012-08-011-8/+2
| | | | | | | | Patch from Taihyun Hwang.
* | add gc support to the AST base type (closes #15293)Benjamin Peterson2012-07-081-4/+17
| |
* | Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.Antoine Pitrou2012-07-081-0/+1
| |
* | Issue #1677: Handle better a race condition between the interactive ↵Tim Golden2012-06-291-23/+22
| | | | | | | | | | | | interpreter and the Ctrl-C signal handler on Windows
* | Issue #15096: Drop support for the ur string prefixChristian Heimes2012-06-201-2/+3
| |
* | use Py_ssize_t for ast sequence lengthsBenjamin Peterson2012-05-151-2/+2
| |
* | Merge with 3.2: issue #14433Martin v. Löwis2012-04-301-1/+4
|\ \ | |/
| * Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.Martin v. Löwis2012-04-301-1/+4
| |
* | free AST's dictBenjamin Peterson2012-03-151-1/+7
| |
* | Try to fix compilation of Python-ast.c on Visual Studio 2008Victor Stinner2012-03-131-1/+1
| |
* | give the AST class a __dict__Benjamin Peterson2012-03-121-3/+15
| |
* | Basic support for PEP 414 without docs or tests.Armin Ronacher2012-03-041-3/+7
| |
* | check after comments, too (#13832)Benjamin Peterson2012-01-191-7/+17
| |
* | don't leak nodeBenjamin Peterson2012-01-191-0/+1
| |
* | only check this when parsing pythonBenjamin Peterson2012-01-191-0/+2
| |
* | Issue #12705: Raise SyntaxError when compiling multiple statements as single ↵Meador Inge2012-01-191-0/+17
| | | | | | | | interactive statement
* | murder tabsBenjamin Peterson2012-01-161-98/+98
| |
* | make YieldFrom its own distinct from Yield (closes #13780)Benjamin Peterson2012-01-141-1/+2
| |
* | Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan2012-01-131-1/+1
| |
* | Issue #13748: Raw bytes literals can now be written with the `rb` prefix as ↵Antoine Pitrou2012-01-121-7/+9
| | | | | | | | well as `br`.
* | evidently some buildbots don't have python 3 installedBenjamin Peterson2011-12-291-1/+1
| |
* | run AST toolchain on python3Benjamin Peterson2011-12-291-1/+1
| |
* | Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-1/+3
|\ \ | |/ | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
| * Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-1/+3
| | | | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
* | Merge branch 3.2Amaury Forgeot d'Arc2011-11-221-5/+1
|\ \ | |/
| * Issue #13436: Fix a bogus error message when an AST object was passedAmaury Forgeot d'Arc2011-11-221-5/+1
| | | | | | | | an invalid integer value.
* | Fix memory leak with FLUFL-related syntax errors (!)Antoine Pitrou2011-11-131-0/+2
|\ \ | |/