summaryrefslogtreecommitdiffstats
path: root/Tools/parser
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29463: Add docstring field to some AST nodes. (#46)INADA Naoki2017-02-221-0/+6
| | | | | | | | | | | * bpo-29463: Add docstring field to some AST nodes. ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring field for now. It was first statement of there body. * fix document. thanks travis! * doc fixes
* Issue #28008: Fix test_unparseYury Selivanov2016-09-091-1/+4
|
* Issue #28038: Remove Tools/parser/com2ann.py and its unit test.Guido van Rossum2016-09-091-308/+0
| | | | Development is moving to https://github.com/ilevkivskyi/com2ann
* Issue #27364: Raw strings to avoid deprecated escaping in com2ann.pyMartin Panter2016-09-091-2/+2
|
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-092-0/+321
| | | | Patch by Ivan Levkivskyi.
* Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-3/+12
|\ | | | | | | Patch by Guo Ci Teo.
| * Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-3/+12
| | | | | | | | Patch by Guo Ci Teo.
* | Add ast.ConstantVictor Stinner2016-01-251-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.Eric V. Smith2015-09-201-0/+39
|/
* PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-2/+30
|
* PEP 448: additional unpacking generalizations (closes #2292)Benjamin Peterson2015-05-061-22/+5
| | | | Patch by Neil Girdhar.
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-161-276/+0
|\ | | | | | | Merge with 3.4.
| * Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-161-276/+0
| |
* | teach unparse about matrix multiplicationBenjamin Peterson2014-04-101-1/+1
|/
* unify some ast.argument's attrs; change Attribute column offset (closes #16795)Benjamin Peterson2013-03-181-6/+6
| | | | Patch from Sven Brauch.
* create NameConstant AST class for None, True, and False literals (closes #16619)Benjamin Peterson2012-12-061-0/+3
|
* Some cleanup in the Tools directory.Florent Xicluna2012-07-071-1/+0
|
* Issue #14742: test_unparse now only checks a limited number of files unless ↵Mark Dickinson2012-06-231-1/+6
| | | | the 'cpu' resource is specified.
* Issue #14965: Bring Tools/parser/unparse.py up to date with the Python 3.3. ↵Mark Dickinson2012-05-062-19/+54
|\ | | | | | | Grammar.
| * Issue #14965: Fix missing support for starred assignments in ↵Mark Dickinson2012-05-062-0/+11
|/ | | | Tools/parser/unparse.py.
* Remove some of the old demos. (Put a few somewhere else.)Georg Brandl2010-12-302-0/+840