summaryrefslogtreecommitdiffstats
path: root/Parser/asdl_c.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)Serhiy Storchaka2018-05-311-1/+2
|
* bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code ↵Serhiy Storchaka2018-01-251-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 Storchaka2017-11-111-18/+28
| | | Silence only expected AttributeError.
* bpo-31536: Avoid wholesale rebuild after `make regen-all` (#3678)Antoine Pitrou2017-09-201-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 Storchaka2017-09-151-2/+3
|
* bpo-31095: fix potential crash during GC (GH-2974)INADA Naoki2017-08-241-0/+2
|
* Fix a shadow-compatible-local warning (#2180)Yuan Chao Chou2017-08-041-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 Naoki2017-02-231-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.cINADA Naoki2017-01-251-8/+13
|
* Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-071-0/+7
|\ | | | | | | compiling it.
| * Issue #24098: Fixed possible crash when AST is changed in process ofSerhiy Storchaka2016-10-071-0/+7
| | | | | | | | compiling it.
| * 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.
* | Issue #26146: remove useless codeVictor Stinner2016-01-261-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-251-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 whenVictor Stinner2015-11-061-2/+10
| | | | | | | | compiling AST from Python objects.
* | merge 3.5 (#25502)Benjamin Peterson2015-10-291-1/+0
|\ \ | |/
| * remove duplicated imports (closes #25502)Benjamin Peterson2015-10-291-1/+0
| |
* | Merge with 3.5.Serhiy Storchaka2015-10-061-0/+0
|\ \ | |/
* | Make asdl_c.py to generate Python-ast.c changed in issue #15989.Serhiy Storchaka2015-09-061-1/+1
|/
* Issue #19655: Replace the ASDL parser carried with CPythonEli Bendersky2014-05-101-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 Peterson2014-02-111-2/+6
|\
| * don't put runtime values in array initializer for C89 compliance (closes #20588)Benjamin Peterson2014-02-111-2/+6
| |
* | Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".Antoine Pitrou2013-10-121-2/+2
| | | | | | | | ("make smelly" now clean)
* | #18803: merge with 3.3.Ezio Melotti2013-08-251-1/+1
|\ \ | |/
| * #18803: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-251-1/+1
| |
* | Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().Christian Heimes2013-07-261-3/+7
|\ \ | |/
| * Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().Christian Heimes2013-07-261-3/+7
| |
* | (Merge 3.3) Parser/asdl_c.py: use Py_CLEAR()Victor Stinner2013-07-261-2/+1
|\ \ | |/
| * Parser/asdl_c.py: use Py_CLEAR()Victor Stinner2013-07-261-2/+1
| |
* | (Merge 3.3) According to the PEP 7, C code must "use 4-space indents"Victor Stinner2013-07-261-1/+1
|\ \ | |/ | | | | Replace 8 spaces with 4.
| * According to the PEP 7, C code must "use 4-space indents"Victor Stinner2013-07-261-1/+1
| | | | | | | | Replace 8 spaces with 4.
* | Issue #18408: Fix Python-ast.c: handle init_types() failure (ex: MemoryError)Victor Stinner2013-07-161-3/+6
| |
* | change AST codegen to use PyModule_AddIntMacroBenjamin Peterson2013-05-201-1/+1
| |
* | placate msvcBenjamin Peterson2013-03-191-1/+2
| |
* | refactor to fix refleaksBenjamin Peterson2013-03-191-5/+15
| |
* | unify some ast.argument's attrs; change Attribute column offset (closes #16795)Benjamin Peterson2013-03-181-1/+30
| | | | | | | | Patch from Sven Brauch.
* | create NameConstant AST class for None, True, and False literals (closes #16619)Benjamin Peterson2012-12-061-0/+12
|/
* - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed.Matthias Klose2012-10-211-1/+0
|\
* \ #15923: merge with 3.2.Ezio Melotti2012-09-301-1/+1
|\ \ | |/
| * #15923: fix a mistake in asdl_c.py that resulted in a TypeError after ↵Ezio Melotti2012-09-301-1/+1
| | | | | | | | 2801bf875a24 (see #15801).
* | add gc support to the AST base type (closes #15293)Benjamin Peterson2012-07-081-4/+17
| |
* | Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.Antoine Pitrou2012-07-081-0/+1
| |
* | use Py_ssize_t for ast sequence lengthsBenjamin Peterson2012-05-151-2/+2
| |
* | free AST's dictBenjamin Peterson2012-03-151-1/+7
| |
* | Try to fix compilation of Python-ast.c on Visual Studio 2008Victor Stinner2012-03-131-1/+1
| |
* | give the AST class a __dict__Benjamin Peterson2012-03-121-3/+15
| |
* | evidently some buildbots don't have python 3 installedBenjamin Peterson2011-12-291-1/+1
| |
* | run AST toolchain on python3Benjamin Peterson2011-12-291-1/+1
| |
* | Merge branch 3.2Amaury Forgeot d'Arc2011-11-221-5/+1
|\ \ | |/
| * Issue #13436: Fix a bogus error message when an AST object was passedAmaury Forgeot d'Arc2011-11-221-5/+1
| | | | | | | | an invalid integer value.