Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36540: PEP 570 -- Implementation (GH-12701) | Pablo Galindo | 2019-04-29 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit contains the implementation of PEP570: Python positional-only parameters. * Update Grammar/Grammar with new typedarglist and varargslist * Regenerate grammar files * Update and regenerate AST related files * Update code object * Update marshal.c * Update compiler and symtable * Regenerate importlib files * Update callable objects * Implement positional-only args logic in ceval.c * Regenerate frozen data * Update standard library to account for positional-only args * Add test file for positional-only args * Update other test files to account for positional-only args * Add News entry * Update inspect module and related tests | ||||
* | bpo-35224: Add support for NamedExpr to unparse.py (GH-11670) | Victor Stinner | 2019-01-25 | 1 | -0/+7 |
| | |||||
* | bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) | Serhiy Storchaka | 2018-09-27 | 1 | -19/+4 |
| | |||||
* | bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197) | Serhiy Storchaka | 2018-05-29 | 1 | -6/+0 |
| | | | | | | Remove the docstring attribute of AST types and restore docstring expression as a first stmt in their body. Co-authored-by: INADA Naoki <methane@users.noreply.github.com> | ||||
* | bpo-29463: Add docstring field to some AST nodes. (#46) | INADA Naoki | 2017-02-22 | 1 | -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_unparse | Yury Selivanov | 2016-09-09 | 1 | -1/+4 |
| | |||||
* | Issue #28038: Remove Tools/parser/com2ann.py and its unit test. | Guido van Rossum | 2016-09-09 | 1 | -308/+0 |
| | | | | Development is moving to https://github.com/ilevkivskyi/com2ann | ||||
* | Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py | Martin Panter | 2016-09-09 | 1 | -2/+2 |
| | |||||
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. | Yury Selivanov | 2016-09-09 | 2 | -0/+321 |
| | | | | Patch by Ivan Levkivskyi. | ||||
* | Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py | Berker Peksag | 2016-03-06 | 1 | -3/+12 |
|\ | | | | | | | Patch by Guo Ci Teo. | ||||
| * | Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py | Berker Peksag | 2016-03-06 | 1 | -3/+12 |
| | | | | | | | | Patch by Guo Ci Teo. | ||||
* | | Add ast.Constant | Victor Stinner | 2016-01-25 | 1 | -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. Smith | 2015-09-20 | 1 | -0/+39 |
|/ | |||||
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 1 | -2/+30 |
| | |||||
* | PEP 448: additional unpacking generalizations (closes #2292) | Benjamin Peterson | 2015-05-06 | 1 | -22/+5 |
| | | | | Patch by Neil Girdhar. | ||||
* | Issue #21918: Convert test_tools.py to a sub-package of test. | Zachary Ware | 2014-07-16 | 1 | -276/+0 |
|\ | | | | | | | Merge with 3.4. | ||||
| * | Issue #21918: Convert test_tools.py to a sub-package of test. | Zachary Ware | 2014-07-16 | 1 | -276/+0 |
| | | |||||
* | | teach unparse about matrix multiplication | Benjamin Peterson | 2014-04-10 | 1 | -1/+1 |
|/ | |||||
* | unify some ast.argument's attrs; change Attribute column offset (closes #16795) | Benjamin Peterson | 2013-03-18 | 1 | -6/+6 |
| | | | | Patch from Sven Brauch. | ||||
* | create NameConstant AST class for None, True, and False literals (closes #16619) | Benjamin Peterson | 2012-12-06 | 1 | -0/+3 |
| | |||||
* | Some cleanup in the Tools directory. | Florent Xicluna | 2012-07-07 | 1 | -1/+0 |
| | |||||
* | Issue #14742: test_unparse now only checks a limited number of files unless ↵ | Mark Dickinson | 2012-06-23 | 1 | -1/+6 |
| | | | | the 'cpu' resource is specified. | ||||
* | Issue #14965: Bring Tools/parser/unparse.py up to date with the Python 3.3. ↵ | Mark Dickinson | 2012-05-06 | 2 | -19/+54 |
|\ | | | | | | | Grammar. | ||||
| * | Issue #14965: Fix missing support for starred assignments in ↵ | Mark Dickinson | 2012-05-06 | 2 | -0/+11 |
|/ | | | | Tools/parser/unparse.py. | ||||
* | Remove some of the old demos. (Put a few somewhere else.) | Georg Brandl | 2010-12-30 | 2 | -0/+840 |