summaryrefslogtreecommitdiffstats
path: root/Python/ast_unparse.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-40663: Correctly handle annotations with subscripts in ↵Batuhan Taskaya2020-05-221-2/+19
| | | | | | | ast_unparse.c (GH-20156). (GH-20192) (cherry picked from commit 2135e10dc717c00d10d899d232bebfc59bb25032) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304)Miss Islington (bot)2020-03-111-0/+1
| | | | | (cherry picked from commit 185903de12de8837bf0dc0008a16e5e56c66a019) Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
* 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.