summaryrefslogtreecommitdiff
path: root/Parser
AgeCommit message (Collapse)AuthorLines
2014-02-28Issue #20731: Properly position in source code files even if theyMartin v. Löwis-2/+12
are opened in text mode. Patch by Serhiy Storchaka.
2014-02-10don't put runtime values in array initializer for C89 compliance (closes #20588)Benjamin Peterson-2/+6
2014-01-09Do not reset the line number because we already set file position to correctSerhiy Storchaka-8/+0
value. (fixes error in patch for issue #18960)
2014-01-09Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka-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.
2013-08-26#18803: fix more typos. Patch by Févry Thibault.Ezio Melotti-1/+1
2013-08-06Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails.Christian Heimes-5/+17
2013-07-31Silence warning about set but unused variable inside compile_atom() in ↵Christian Heimes-0/+1
non-debug builds
2013-07-27Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().Christian Heimes-3/+7
2013-07-27Parser/asdl_c.py: use Py_CLEAR()Victor Stinner-2/+1
2013-07-27According to the PEP 7, C code must "use 4-space indents"Victor Stinner-1/+1
Replace 8 spaces with 4.
2013-07-22Some compilers complain about 'control reaches end of non-void function'Christian Heimes-0/+1
because they don't understand that Py_FatalError() terminates the program.
2013-07-22Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens ↵Christian Heimes-1/+4
when debugging a new grammar. CID 715360
2013-07-15move declaration to top of blockBenjamin Peterson-1/+2
2013-07-15check the return value of new_string() (closes #18470)Benjamin Peterson-36/+46
2013-06-09Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka-7/+7
encoding now always contains an encoding name.
2012-11-25Issue #16546: make ast.YieldFrom argument mandatory.Mark Dickinson-1/+1
2012-10-21- Issue #16262: fix out-of-src-tree builds, if mercurial is not installed.Matthias Klose-1/+0
2012-09-30#15923: merge with 3.2.Ezio Melotti-1/+1
2012-09-30#15923: fix a mistake in asdl_c.py that resulted in a TypeError after ↵Ezio Melotti-1/+1
2801bf875a24 (see #15801).
2012-09-20Issue #15144: Fix possible integer overflow when handling pointers as ↵Antoine Pitrou-1/+1
integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka.
2012-08-11Remove unused variables in parsetok().Georg Brandl-2/+1
2012-08-03MERGE: Closes #15512: Correct __sizeof__ support for parserJesus Cea-0/+26
2012-08-03Closes #15512: Correct __sizeof__ support for parserJesus Cea-0/+26
2012-07-31construct fields in the right order (closes #15517)Benjamin Peterson-8/+2
Patch from Taihyun Hwang.
2012-07-08add gc support to the AST base type (closes #15293)Benjamin Peterson-4/+17
2012-07-08Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.Antoine Pitrou-0/+1
2012-07-03Issue #1677: Unused variable warning in Non-WindowsJesus Cea-1/+4
2012-06-29Issue #1677: Handle better a race condition between the interactive ↵Tim Golden-23/+22
interpreter and the Ctrl-C signal handler on Windows
2012-06-29Issue #1677: Handle better a race condition between the interactive ↵Tim Golden-22/+15
interpreter and the Ctrl-C signal handler on Windows
2012-06-20Issue #15096: Drop support for the ur string prefixChristian Heimes-2/+3
2012-05-15use Py_ssize_t for ast sequence lengthsBenjamin Peterson-2/+2
2012-04-30Merge with 3.2: issue #14433Martin v. Löwis-1/+4
2012-04-30Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.Martin v. Löwis-1/+4
2012-03-14free AST's dictBenjamin Peterson-1/+7
2012-03-13Try to fix compilation of Python-ast.c on Visual Studio 2008Victor Stinner-1/+1
2012-03-12give the AST class a __dict__Benjamin Peterson-3/+15
2012-03-04Basic support for PEP 414 without docs or tests.Armin Ronacher-3/+7
2012-01-19check after comments, too (#13832)Benjamin Peterson-6/+16
2012-01-19don't leak nodeBenjamin Peterson-0/+1
2012-01-19only check this when parsing pythonBenjamin Peterson-0/+2
2012-01-19Issue #12705: Raise SyntaxError when compiling multiple statements as single ↵Meador Inge-0/+17
interactive statement
2012-01-16murder tabsBenjamin Peterson-85/+85
2012-01-14make YieldFrom its own distinct from Yield (closes #13780)Benjamin Peterson-1/+2
2012-01-13Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan-1/+1
2012-01-12Issue #13748: Raw bytes literals can now be written with the `rb` prefix as ↵Antoine Pitrou-7/+9
well as `br`.
2011-12-29evidently some buildbots don't have python 3 installedBenjamin Peterson-1/+1
2011-12-29run AST toolchain on python3Benjamin Peterson-1/+1
2011-12-16Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou-1/+3
overwrite it. Original patch by Hallvard B Furuseth.
2011-12-16Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou-1/+3
overwrite it. Original patch by Hallvard B Furuseth.
2011-11-22Merge branch 3.2Amaury Forgeot d'Arc-5/+1