mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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>
This commit is contained in:
parent
2179022d94
commit
73cbe7a01a
17 changed files with 3287 additions and 3358 deletions
|
@ -151,10 +151,6 @@ and classes for traversing abstract syntax trees:
|
|||
.. versionchanged:: 3.5
|
||||
:class:`AsyncFunctionDef` is now supported.
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
The docstring is now exported from the node docstring field, instead of
|
||||
the first body statement.
|
||||
|
||||
|
||||
.. function:: fix_missing_locations(node)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue