summaryrefslogtreecommitdiffstats
path: root/Python/ast_unparse.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)Miss Islington (bot)2018-09-301-4/+7
| | | | | | | | | | | | * Compiling a string annotation containing a lambda with keyword-only argument without default value caused a crash. * Remove the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST. * Improve the representation of lambda without arguments. (cherry picked from commit 2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-33475: Fix and improve converting annotations to strings. ↵Serhiy Storchaka2018-05-201-536/+290
| | | | | | | (GH-6774). (GH-6927) (cherry picked from commit 64fddc423fcbe90b8088446c63385ec0aaf3077c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.7] bpo-32711: Fix warnings for Python/ast_unparse.c (GH-5426) (#5475)Miss Islington (bot)2018-02-011-3/+7
| | | | | | * bpo-32711: Fix warnings for Python/ast_unparse.c (cherry picked from commit 83ab995871ffd504ac229bdbf5b9e9ffc1032815) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* String annotations [PEP 563] (#4390)Guido van Rossum2018-01-261-0/+1163
* Document `from __future__ import annotations` * Provide plumbing and tests for `from __future__ import annotations` * Implement unparsing the AST back to string form This is required for PEP 563 and as such only implements a part of the unparsing process that covers expressions.