]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 29 May 2018 09:04:55 +0000 (12:04 +0300)
committerGitHub <noreply@github.com>
Tue, 29 May 2018 09:04:55 +0000 (12:04 +0300)
commit73cbe7a01a22d02dbe1ec841e8779c775cad3d08
tree0c39a8adb1cebdfc95cc991223c6c278fb13100a
parent2179022d94937d7b0600b0dc192ca6fa5f53d830
bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)

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>
17 files changed:
Doc/library/ast.rst
Doc/whatsnew/3.7.rst
Include/Python-ast.h
Lib/ast.py
Lib/test/test_ast.py
Lib/test/test_opcodes.py
Misc/NEWS.d/3.7.0a1.rst
Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-32911.cmKfco.rst [new file with mode: 0644]
Parser/Python.asdl
Python/Python-ast.c
Python/ast.c
Python/ast_opt.c
Python/compile.c
Python/future.c
Python/importlib.h
Python/importlib_external.h
Tools/parser/unparse.py