summaryrefslogtreecommitdiff
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28489: Merge from 3.6Berker Peksag2017-02-051-1/+1
|\
| * Issue #28489: Fix comment in tokenizer.cBerker Peksag2017-02-051-1/+1
| | | | | | | | Patch by Ryan Gonzalez.
* | Issue #29369: Use Py_IDENTIFIER in Python-ast.cINADA Naoki2017-01-251-8/+13
| |
* | Use _PyObject_CallNoArg()Victor Stinner2016-12-061-3/+3
|/ | | | | | | Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable)
* Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSizeSerhiy Storchaka2016-11-201-1/+1
| | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
* Issue #28333: Fixes off-by-one error that was adding an extra space.Steve Dower2016-10-251-1/+2
|
* Issue #28333: Remove unnecessary increment.Steve Dower2016-10-081-1/+1
|
* Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by ↵Steve Dower2016-10-081-4/+24
| | | | Eryk Sun)
* Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-0711-103/+375
|\ | | | | | | compiling it.
| * merge 3.5 (#28184)Benjamin Peterson2016-09-1911-103/+375
| |\
| | * merge 3.5 (#24022)Benjamin Peterson2016-09-181-1/+1
| | |\ | | |/ | |/|
| | * properly free memory in pgenBenjamin Peterson2016-09-183-2/+34
| | |
| | * merge 3.5 (#27981)Benjamin Peterson2016-09-121-15/+17
| | |\
| | * | Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-68/+162
| | | | | | | | | | | | | | | | Thanks to Georg Brandl for the patch.
| | * | Issue #28008: Implement PEP 530 -- asynchronous comprehensions.Yury Selivanov2016-09-091-1/+1
| | | |
| | * | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-081-0/+2
| | | | | | | | | | | | | | | | Patch by Ivan Levkivskyi.
| | * | Skip unused value in tokenizer codeChristian Heimes2016-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of an escape character, c is never read. tok_next() is used to advance the pointer. CID 1225097
| | * | Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-301-0/+113
| | | | | | | | | | | | | | | | Closes #17602: Adds a readline implementation for the Windows console
| | * | Issue #23524: Finish removing _PyVerify_fd from sourcesSteve Dower2016-09-081-4/+1
| | | |
| | * | replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-071-1/+1
| | | |
| | * | replace Py_(u)intptr_t with the c99 standard typesBenjamin Peterson2016-09-062-3/+3
| | | |
| | * | Fix a clang warning in grammar.cVictor Stinner2016-08-191-0/+6
| | | | | | | | | | | | | | | | | | | | Clang is smarter than GCC and emits a warning for dead code after a function declared with __attribute__((__noreturn__)) (Py_FatalError).
| | * | Issue #27336: Fix compilation failures --without-threadsBerker Peksag2016-06-171-2/+3
| | | |
| | * | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-068-26/+53
| | |\ \
| | | * | Issue #26130: Remove redundant variable 's' from Parser/parser.cBerker Peksag2016-03-281-5/+4
| | | | | | | | | | | | | | | | | | | | Patch by Oren Milman.
| | | * | remove duplicated check for fractions and complex numbers (closes #26076)Benjamin Peterson2016-03-241-4/+0
| | | | | | | | | | | | | | | | | | | | Patch by Oren Milman.
| | | * | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-0/+1
| | | |\ \
| | | * | | On memory error, dump the memory block tracebackVictor Stinner2016-03-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26564: _PyObject_DebugDumpAddress() now dumps the traceback where a memory block was allocated on memory block. Use the tracemalloc module to get the traceback.
| | | * | | Add more checks on the GILVictor Stinner2016-03-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #10915, #15751, #26558: * PyGILState_Check() now returns 1 (success) before the creation of the GIL and after the destruction of the GIL. It allows to use the function early in Python initialization and late in Python finalization. * Add a flag to disable PyGILState_Check(). Disable PyGILState_Check() when Py_NewInterpreter() is called * Add assert(PyGILState_Check()) to: _Py_dup(), _Py_fstat(), _Py_read() and _Py_write()
| | | * | | Issue #26146: remove useless codeVictor Stinner2016-01-271-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | obj2ast_constant() code is baesd on obj2ast_object() which has a special case for Py_None. But in practice, we don't need to have a special case for constants. Issue noticed by Joseph Jevnik on a review.
| | | * | | Add ast.ConstantVictor Stinner2016-01-263-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by external AST optimizers, but the compiler does not emit directly such node. An optimizer can replace the following AST nodes with ast.Constant: * ast.NameConstant: None, False, True * ast.Num: int, float, complex * ast.Str: str * ast.Bytes: bytes * ast.Tuple if items are constants too: tuple * frozenset Update code to accept ast.Constant instead of ast.Num and/or ast.Str: * compiler * docstrings * ast.literal_eval() * Tools/parser/unparse.py
| | | * | | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-253-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | private functions.
| | | * | | Issue #25923: Added the const qualifier to static constant arrays.Serhiy Storchaka2015-12-252-3/+3
| | | | | |
| | | * | | Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-243-5/+9
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | macro Py_SETREF.
| | | | * \ \ Issue #25388: Fixed tokenizer crash when processing undecodable source codeSerhiy Storchaka2015-11-143-5/+9
| | | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | with a null byte.
| | | | | * | | Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node whenVictor Stinner2015-11-061-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling AST from Python objects.
| | | | | * | | merge 3.5 (#25502)Benjamin Peterson2015-10-283-5/+9
| | | | | |\ \ \
| | | | | | * \ \ Merge with 3.5.Serhiy Storchaka2015-10-063-5/+9
| | | | | | |\ \ \
| | | | | | | * | | Issue #24965: Implement PEP 498 "Literal String Interpolation". ↵Eric V. Smith2015-09-192-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation is still needed, I'll open an issue for that.
| | | | | | | * | | Fixed indentation.Eric V. Smith2015-09-121-1/+1
| | | | | | | | | |
| | | | | | | * | | Make asdl_c.py to generate Python-ast.c changed in issue #15989.Serhiy Storchaka2015-09-061-1/+1
| | | | | | |/ / /
* | | | | | | | | Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-071-0/+7
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | compiling it.
* | | | | | | | merge 3.4Benjamin Peterson2016-09-1810-1247/+425
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | |
| * | | | | | | restructure fp_setreadl so as to avoid refleaks (closes #27981)Benjamin Peterson2016-09-121-15/+17
| |/ / / / / /
| * | | | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-1/+1
| | |_|_|_|/ | |/| | | |
| * | | | | Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-201-0/+1
| |/ / / /
| * | | | Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| |/ / / | | | | | | | | | | | | macro Py_SETREF.
| * | | Issue #25388: Fixed tokenizer crash when processing undecodable source codeSerhiy Storchaka2015-11-141-8/+6
| |\ \ \ | | | | | | | | | | | | | | | with a null byte.
| * | | | Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node whenVictor Stinner2015-11-061-2/+10
| | |/ / | |/| | | | | | | | | | compiling AST from Python objects.
| * | | remove duplicated imports (closes #25502)Benjamin Peterson2015-10-281-1/+0
| | |/ | |/|