Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | replace Py_(u)intptr_t with the c99 standard types | Benjamin Peterson | 2016-09-06 | 2 | -3/+3 |
| | |||||
* | Fix a clang warning in grammar.c | Victor Stinner | 2016-08-19 | 1 | -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-threads | Berker Peksag | 2016-06-17 | 1 | -2/+3 |
| | |||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #26130: Remove redundant variable 's' from Parser/parser.c | Berker Peksag | 2016-03-27 | 1 | -5/+4 |
| | | | | | | | | Patch by Oren Milman. | ||||
* | | remove duplicated check for fractions and complex numbers (closes #26076) | Benjamin Peterson | 2016-03-25 | 1 | -4/+0 |
| | | | | | | | | Patch by Oren Milman. | ||||
* | | Issue #26581: Use the first coding cookie on a line, not the last one. | Serhiy Storchaka | 2016-03-20 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #26581: Use the first coding cookie on a line, not the last one. | Serhiy Storchaka | 2016-03-20 | 1 | -0/+1 |
| | | |||||
* | | On memory error, dump the memory block traceback | Victor Stinner | 2016-03-15 | 1 | -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 GIL | Victor Stinner | 2016-03-14 | 1 | -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 code | Victor Stinner | 2016-01-26 | 1 | -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.Constant | Victor Stinner | 2016-01-25 | 3 | -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 Storchaka | 2015-12-25 | 3 | -7/+7 |
| | | | | | | | | private functions. | ||||
* | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 2 | -3/+3 |
| | | |||||
* | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
|\ \ | |/ | | | | | macro Py_SETREF. | ||||
| * | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | | | | | macro Py_SETREF. | ||||
* | | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
|\ \ | |/ | | | | | with a null byte. | ||||
| * | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
| |\ | | | | | | | | | | with a null byte. | ||||
| | * | Issue #25388: Fixed tokenizer crash when processing undecodable source code | Serhiy Storchaka | 2015-11-14 | 1 | -8/+6 |
| | | | | | | | | | | | | with a null byte. | ||||
| * | | Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node when | Victor Stinner | 2015-11-06 | 1 | -2/+10 |
| | | | | | | | | | | | | compiling AST from Python objects. | ||||
* | | | Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node when | Victor Stinner | 2015-11-06 | 1 | -2/+10 |
| | | | | | | | | | | | | compiling AST from Python objects. | ||||
* | | | merge 3.5 (#25502) | Benjamin Peterson | 2015-10-29 | 1 | -1/+0 |
|\ \ \ | |/ / | |||||
| * | | remove duplicated imports (closes #25502) | Benjamin Peterson | 2015-10-29 | 1 | -1/+0 |
| | | | |||||
* | | | Merge with 3.5. | Serhiy Storchaka | 2015-10-06 | 1 | -0/+0 |
|\ \ \ | |/ / | |||||
* | | | Issue #24965: Implement PEP 498 "Literal String Interpolation". ↵ | Eric V. Smith | 2015-09-19 | 2 | -3/+7 |
| | | | | | | | | | | | | Documentation is still needed, I'll open an issue for that. | ||||
* | | | Fixed indentation. | Eric V. Smith | 2015-09-12 | 1 | -1/+1 |
| | | | |||||
* | | | Make asdl_c.py to generate Python-ast.c changed in issue #15989. | Serhiy Storchaka | 2015-09-06 | 1 | -1/+1 |
|/ / | |||||
* | | Issue #24619: Simplify async/await tokenization. | Yury Selivanov | 2015-07-23 | 2 | -102/+45 |
| | | | | | | | | | | | | | | | | | | | | This commit simplifies async/await tokenization in tokenizer.c, tokenize.py & lib2to3/tokenize.py. Previous solution was to keep a stack of async-def & def blocks, whereas the new approach is just to remember position of the outermost async-def block. This change won't bring any parsing performance improvements, but it makes the code much easier to read and validate. | ||||
* | | Issue #24619: New approach for tokenizing async/await. | Yury Selivanov | 2015-07-22 | 2 | -41/+85 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes how one-line async-defs and defs are tracked by tokenizer. It allows to correctly parse invalid code such as: >>> async def f(): ... def g(): pass ... async = 10 and valid code such as: >>> async def f(): ... async def g(): pass ... await z As a consequence, is is now possible to have one-line 'async def foo(): await ..' functions: >>> async def foo(): return await bar() | ||||
* | | Issue 24226: Fix parsing of many sequential one-line 'def' statements. | Yury Selivanov | 2015-05-18 | 1 | -8/+17 |
| | | |||||
* | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 3 | -1/+82 |
| | | |||||
* | | PEP 448: additional unpacking generalizations (closes #2292) | Benjamin Peterson | 2015-05-06 | 1 | -6/+3 |
| | | | | | | | | Patch by Neil Girdhar. | ||||
* | | merge 3.4 (#24022) | Benjamin Peterson | 2015-04-21 | 1 | -4/+3 |
|\ \ | |/ | |||||
| * | do not call into python api if an exception is set (#24022) | Benjamin Peterson | 2015-04-21 | 1 | -4/+3 |
| | | |||||
* | | Removed trailing whitespaces in miscalenous files. | Serhiy Storchaka | 2015-04-03 | 1 | -8/+8 |
| | | |||||
* | | Got rid of warnings "suggest braces around empty body in an ‘else’ ↵ | Serhiy Storchaka | 2015-04-03 | 1 | -2/+3 |
| | | | | | | | | | | | | statement" in Parser/pgen.c. | ||||
* | | Issue #22823: Use set literals instead of creating a set from a list | Raymond Hettinger | 2014-11-09 | 1 | -2/+1 |
| | | |||||
* | | Silenced some warnings about comparison between signed and unsigned integer | Serhiy Storchaka | 2014-09-05 | 3 | -7/+9 |
| | | | | | | | | expressions. | ||||
* | | Fix bootstrapping asdl -- it didn't work with Python 2.7. | Guido van Rossum | 2014-07-08 | 1 | -2/+2 |
| | | |||||
* | | merge 3.4 (#21642) | Benjamin Peterson | 2014-06-07 | 1 | -5/+14 |
|\ \ | |/ | |||||
| * | allow the keyword else immediately after (no space) an integer (closes #21642) | Benjamin Peterson | 2014-06-07 | 1 | -5/+14 |
| | | |||||
* | | Issue #19655: Replace the ASDL parser carried with CPython | Eli Bendersky | 2014-05-10 | 3 | -1202/+289 |
| | | | | | | | | | | | | | | | | The new parser does not rely on Spark (which is now removed from our repo), uses modern 3.x idioms and is significantly smaller and simpler. It generates exactly the same AST files (.h and .c), so in practice no builds should be affected. | ||||
* | | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) | Benjamin Peterson | 2014-04-10 | 2 | -2/+8 |
|/ | |||||
* | Merge with 3.3 | Martin v. Löwis | 2014-02-28 | 1 | -2/+12 |
|\ | |||||
| * | Issue #20731: Properly position in source code files even if they | Martin v. Löwis | 2014-02-28 | 1 | -2/+12 |
| | | | | | | | | are opened in text mode. Patch by Serhiy Storchaka. | ||||
* | | merge 3.3 (#20588) | Benjamin Peterson | 2014-02-11 | 1 | -2/+6 |
|\ \ | |/ | |||||
| * | don't put runtime values in array initializer for C89 compliance (closes #20588) | Benjamin Peterson | 2014-02-11 | 1 | -2/+6 |
| | | |||||
* | | Do not reset the line number because we already set file position to correct | Serhiy Storchaka | 2014-01-09 | 1 | -8/+0 |
|\ \ | |/ | | | | | | | | | value. (fixes error in patch for issue #18960) | ||||
| * | Do not reset the line number because we already set file position to correct | Serhiy Storchaka | 2014-01-09 | 1 | -8/+0 |
| | | | | | | | | | | | | value. (fixes error in patch for issue #18960) |