]> granicus.if.org Git - python/commit
String annotations [PEP 563] (#4390)
authorGuido van Rossum <guido@python.org>
Fri, 26 Jan 2018 16:20:18 +0000 (08:20 -0800)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 26 Jan 2018 16:20:18 +0000 (08:20 -0800)
commit95e4d589137260530e18ef98a2ed84ee3ec57e12
tree9d0c3bc48158e9f0c83f1b9cb509c1fbebd9cfde
parentd7773d92bd11640a8c950d6c36a9cef1cee36f96
String annotations [PEP 563] (#4390)

* 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.
16 files changed:
Doc/glossary.rst
Doc/library/__future__.rst
Doc/reference/compound_stmts.rst
Doc/reference/simple_stmts.rst
Doc/whatsnew/3.7.rst
Include/ast.h
Include/code.h
Include/compile.h
Lib/__future__.py
Lib/test/test_future.py
Makefile.pre.in
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/ast_unparse.c [new file with mode: 0644]
Python/compile.c
Python/future.c