]> granicus.if.org Git - python/commit
bpo-29463: Add docstring field to some AST nodes. (#46)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 22 Feb 2017 15:31:59 +0000 (00:31 +0900)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 22 Feb 2017 15:31:59 +0000 (16:31 +0100)
commitcb41b2766de646435743b6af7dd152751b54e73f
tree4033a04617524787defe4699c45327783fe44d8d
parent1bc156430bad8177b5beecf57979628c1d071230
bpo-29463: Add docstring field to some AST nodes. (#46)

* 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
15 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
Parser/Python.asdl
Python/Python-ast.c
Python/ast.c
Python/compile.c
Python/future.c
Python/importlib.h
Python/importlib_external.h
Tools/parser/unparse.py