summaryrefslogtreecommitdiff
path: root/Modules/parsermodule.c
AgeCommit message (Collapse)AuthorLines
2017-04-19[3.6] bpo-30070: Fixed leaks and crashes in errors handling in the parser ↵Serhiy Storchaka-52/+79
module. (GH-1131). (#1184) (cherry picked from commit a79f4c219531c05fc8f670c1e4bbf12c081935d3)
2016-11-20Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka-2/+2
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
2016-06-02replace custom validation logic in the parse module with a simple DFA ↵Benjamin Peterson-2452/+93
validator (closes #26526) Patch from A. Skrobov.
2015-12-25Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka-5/+5
private functions.
2015-12-25Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka-2/+2
2015-12-19Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka-1/+1
This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
2015-08-05Issue #24791: Fix grammar regression for call syntax: 'g(*a or b)'.Yury Selivanov-3/+6
2015-05-16allow test node after ** in calls (closes #24176)Benjamin Peterson-1/+1
2015-05-11PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov-12/+103
2015-05-05PEP 448: additional unpacking generalizations (closes #2292)Benjamin Peterson-124/+141
Patch by Neil Girdhar.
2015-03-18Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka-1/+1
2014-01-02(Merge 3.3) parser: fix usage of Py_BuildValue() to build a parser errorVictor Stinner-1/+1
Fix typo: "os" format => "Os"
2014-01-02parser: fix usage of Py_BuildValue() to build a parser errorVictor Stinner-1/+1
Fix typo: "os" format => "Os"
2013-08-26Close #11619: The parser and the import machinery do not encode UnicodeVictor Stinner-17/+30
filenames anymore on Windows.
2013-07-17Issue #18408: Fix typo in build_node_tree() of the parser moduleVictor Stinner-1/+1
Type "o" format of Py_BuildValue() is invalid: it must be "O".
2013-07-12Issue #18408: parser module: fix error handling in node2tuple()Victor Stinner-28/+52
Handle PyLong_FromLong() and PyUnicode_FromString() failures
2013-07-12Issue #18408: Fix parser.sequence2st() and parser.tuple2st(): raise MemoryErrorVictor Stinner-4/+15
on memory allocation failure Instead of ignoring the memory allocation failure and create invalid objects.
2013-01-19Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-5/+19
when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-15Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-5/+19
when result of PyLong_AsLong() narrowed to int without checks.
2012-12-18Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov-3/+3
Patch by Serhiy Storchaka.
2012-12-18Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov-3/+3
Patch by Serhiy Storchaka.
2012-08-15Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou-32/+16
errors correctly. Patch by Serhiy Storchaka.
2012-08-15Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou-5/+13
errors correctly. Patch by Serhiy Storchaka.
2012-08-03MERGE: Closes #15512: Correct __sizeof__ support for parserJesus Cea-1/+12
2012-08-03Closes #15512: Correct __sizeof__ support for parserJesus Cea-1/+12
2012-05-07Issue #14741: Merge fix from 3.2.Mark Dickinson-5/+1
2012-05-07Issue #14741: Fix missing support for ellipsis in parser module.Mark Dickinson-5/+1
2012-05-07Issue #14697: Merge fix from 3.2.Mark Dickinson-20/+78
2012-05-07Issue #14697: Fix missing parser module support for set displays and set ↵Mark Dickinson-20/+78
comprehensions.
2012-05-07Issue #14701: Add missing support for 'raise ... from' in parser module.Mark Dickinson-12/+11
2012-05-07Issue #14701: Merge fix from 3.2.Mark Dickinson-12/+11
2012-04-29Issue #14696: Merge from 3.2Mark Dickinson-5/+36
2012-04-29Issue #14696: Fix parser module to understand 'nonlocal' declarations.Mark Dickinson-5/+36
2012-04-29Issue #9154: Merge fix from 3.2.Mark Dickinson-57/+71
2012-04-29Issue #9154: Fix parser module to understand function annotations.Mark Dickinson-57/+71
2012-01-13Implement PEP 380 - 'yield from' (closes #11682)Nick Coghlan-27/+55
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-3/+3
2011-10-10Use identifier API for PyObject_GetAttrString.Martin v. Löwis-3/+6
2011-06-05always clear parser errorBenjamin Peterson-1/+1
2011-06-04only clear the parser error if it's set (closes #12264)Benjamin Peterson-2/+3
2011-04-05Issue #10785: Store the filename as Unicode in the Python parser.Victor Stinner-0/+1
2011-03-15#11515: Merge with 3.1.Ezio Melotti-1/+1
2011-03-15#11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2010-12-08Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵Alexander Belopolsky-0/+13
NULL
2010-11-30Remove redundant includes of headers that are already included by Python.h.Georg Brandl-2/+0
2010-07-04Merged revisions 82555 via svnmerge fromMark Dickinson-6/+6
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82555 | mark.dickinson | 2010-07-04 19:38:57 +0100 (Sun, 04 Jul 2010) | 2 lines Issue #9130: Validate ellipsis tokens in relative imports. ........
2010-07-04Issue #9130: Validate ellipsis tokens in relative imports.Mark Dickinson-6/+6
2010-07-04Merged revisions 82552-82553 via svnmerge fromMark Dickinson-3/+4
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82552 | mark.dickinson | 2010-07-04 19:11:51 +0100 (Sun, 04 Jul 2010) | 2 lines Issue #9130: Fix validation of relative imports in parser module. ........ r82553 | mark.dickinson | 2010-07-04 19:15:26 +0100 (Sun, 04 Jul 2010) | 1 line Fix symbol numbers in test_parser test. ........
2010-07-04Issue #9130: Fix validation of relative imports in parser module.Mark Dickinson-3/+4
2010-07-04Merged revisions 82537 via svnmerge fromMark Dickinson-8/+9
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82537 | mark.dickinson | 2010-07-04 17:37:31 +0100 (Sun, 04 Jul 2010) | 2 lines Issue #9128: Fix validation of class decorators in parser module. ........