Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code ↵ | Serhiy Storchaka | 2018-01-25 | 1 | -55/+26 |
| | | | | | (GH-5222) Add two new private APIs: _PyObject_LookupAttr() and _PyObject_LookupAttrId() | ||||
* | bpo-31572: Get rid of _PyObject_HasAttrId() in the ASDL parser. (#3725) | Serhiy Storchaka | 2017-11-11 | 1 | -18/+28 |
| | | | Silence only expected AttributeError. | ||||
* | bpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678) | Antoine Pitrou | 2017-09-20 | 1 | -42/+38 |
| | | | | | | * bpo-31536: Avoid wholesale rebuild after `make regen-all` * Add NEWS | ||||
* | bpo-31464: asdl_c.py no longer emits trailing spaces in Python-ast.h. (#3568) | Serhiy Storchaka | 2017-09-15 | 1 | -2/+3 |
| | |||||
* | bpo-31095: fix potential crash during GC (GH-2974) | INADA Naoki | 2017-08-24 | 1 | -0/+2 |
| | |||||
* | Fix a shadow-compatible-local warning (#2180) | Yuan Chao Chou | 2017-08-04 | 1 | -3/+3 |
| | | | | Change the shadowing naming, 'value' (Python-ast.c:4652), to 'val' to prevent the variables from being misused. | ||||
* | bpo-29622: Make AST constructor to accept less than enough number of ↵ | INADA Naoki | 2017-02-23 | 1 | -19/+17 |
| | | | | | | | | | | | positional arguments (GH-249) bpo-29463 added optional "docstring" field to 4 AST types. While it is optional, it breaks backward compatibility because AST constructor requires number of positional argument is same to number of fields. AST types accepts empty arguments, and incomplete keyword arguments. But it's not big problem because field can be filled after creation, and checked when compiling. So stop requiring complete set of fields for positional arguments too. | ||||
* | Issue #29369: Use Py_IDENTIFIER in Python-ast.c | INADA Naoki | 2017-01-25 | 1 | -8/+13 |
| | |||||
* | Issue #24098: Fixed possible crash when AST is changed in process of | Serhiy Storchaka | 2016-10-07 | 1 | -0/+7 |
|\ | | | | | | | compiling it. | ||||
| * | Issue #24098: Fixed possible crash when AST is changed in process of | Serhiy Storchaka | 2016-10-07 | 1 | -0/+7 |
| | | | | | | | | compiling it. | ||||
| * | 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 #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 | 1 | -0/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #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 |
|\ \ | |/ | |||||
* | | Make asdl_c.py to generate Python-ast.c changed in issue #15989. | Serhiy Storchaka | 2015-09-06 | 1 | -1/+1 |
|/ | |||||
* | Issue #19655: Replace the ASDL parser carried with CPython | Eli Bendersky | 2014-05-10 | 1 | -29/+25 |
| | | | | | | | | 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. | ||||
* | 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 |
| | | |||||
* | | Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py". | Antoine Pitrou | 2013-10-12 | 1 | -2/+2 |
| | | | | | | | | ("make smelly" now clean) | ||||
* | | #18803: merge with 3.3. | Ezio Melotti | 2013-08-25 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #18803: fix more typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-25 | 1 | -1/+1 |
| | | |||||
* | | Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object(). | Christian Heimes | 2013-07-26 | 1 | -3/+7 |
|\ \ | |/ | |||||
| * | Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object(). | Christian Heimes | 2013-07-26 | 1 | -3/+7 |
| | | |||||
* | | (Merge 3.3) Parser/asdl_c.py: use Py_CLEAR() | Victor Stinner | 2013-07-26 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Parser/asdl_c.py: use Py_CLEAR() | Victor Stinner | 2013-07-26 | 1 | -2/+1 |
| | | |||||
* | | (Merge 3.3) According to the PEP 7, C code must "use 4-space indents" | Victor Stinner | 2013-07-26 | 1 | -1/+1 |
|\ \ | |/ | | | | | Replace 8 spaces with 4. | ||||
| * | According to the PEP 7, C code must "use 4-space indents" | Victor Stinner | 2013-07-26 | 1 | -1/+1 |
| | | | | | | | | Replace 8 spaces with 4. | ||||
* | | Issue #18408: Fix Python-ast.c: handle init_types() failure (ex: MemoryError) | Victor Stinner | 2013-07-16 | 1 | -3/+6 |
| | | |||||
* | | change AST codegen to use PyModule_AddIntMacro | Benjamin Peterson | 2013-05-20 | 1 | -1/+1 |
| | | |||||
* | | placate msvc | Benjamin Peterson | 2013-03-19 | 1 | -1/+2 |
| | | |||||
* | | refactor to fix refleaks | Benjamin Peterson | 2013-03-19 | 1 | -5/+15 |
| | | |||||
* | | unify some ast.argument's attrs; change Attribute column offset (closes #16795) | Benjamin Peterson | 2013-03-18 | 1 | -1/+30 |
| | | | | | | | | Patch from Sven Brauch. | ||||
* | | create NameConstant AST class for None, True, and False literals (closes #16619) | Benjamin Peterson | 2012-12-06 | 1 | -0/+12 |
|/ | |||||
* | - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed. | Matthias Klose | 2012-10-21 | 1 | -1/+0 |
|\ | |||||
* \ | #15923: merge with 3.2. | Ezio Melotti | 2012-09-30 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #15923: fix a mistake in asdl_c.py that resulted in a TypeError after ↵ | Ezio Melotti | 2012-09-30 | 1 | -1/+1 |
| | | | | | | | | 2801bf875a24 (see #15801). | ||||
* | | add gc support to the AST base type (closes #15293) | Benjamin Peterson | 2012-07-08 | 1 | -4/+17 |
| | | |||||
* | | Issue #15291: Fix a memory leak where AST nodes where not properly deallocated. | Antoine Pitrou | 2012-07-08 | 1 | -0/+1 |
| | | |||||
* | | use Py_ssize_t for ast sequence lengths | Benjamin Peterson | 2012-05-15 | 1 | -2/+2 |
| | | |||||
* | | free AST's dict | Benjamin Peterson | 2012-03-15 | 1 | -1/+7 |
| | | |||||
* | | Try to fix compilation of Python-ast.c on Visual Studio 2008 | Victor Stinner | 2012-03-13 | 1 | -1/+1 |
| | | |||||
* | | give the AST class a __dict__ | Benjamin Peterson | 2012-03-12 | 1 | -3/+15 |
| | | |||||
* | | evidently some buildbots don't have python 3 installed | Benjamin Peterson | 2011-12-29 | 1 | -1/+1 |
| | | |||||
* | | run AST toolchain on python3 | Benjamin Peterson | 2011-12-29 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 3.2 | Amaury Forgeot d'Arc | 2011-11-22 | 1 | -5/+1 |
|\ \ | |/ | |||||
| * | Issue #13436: Fix a bogus error message when an AST object was passed | Amaury Forgeot d'Arc | 2011-11-22 | 1 | -5/+1 |
| | | | | | | | | an invalid integer value. | ||||
* | | Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py | Meador Inge | 2011-10-22 | 1 | -3/+3 |
| | | | | | | | | | | Parser/asdl_c.py was missed in commit 7109f31300fb when _Py_identifier was replaced with _Py_IDENTIFIER. Thanks to Eric Snow for the patch. |