cpython/Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-329...

6 lines
332 B
ReStructuredText

Due to unexpected compatibility issues discovered during downstream beta
testing, reverted :issue:`29463`. ``docstring`` field is removed from Module,
ClassDef, FunctionDef, and AsyncFunctionDef ast nodes which was added in
3.7a1. Docstring expression is restored as a first statement in their body.
Based on patch by Inada Naoki.