]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38870: Add docstring support to ast.unparse (GH-17760)
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Mon, 2 Mar 2020 18:59:01 +0000 (21:59 +0300)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 18:59:01 +0000 (18:59 +0000)
commit89aa4694fc8c6d190325ef8ed6ce6a6b8efb3e50
treece9a506b9121d6188986725bbbef7a678321833c
parent66b7973c1b2e6aa6a2462c6b13971a08cd665af2
bpo-38870: Add docstring support to ast.unparse (GH-17760)

Allow ast.unparse to detect docstrings in functions, modules and classes and produce
nicely formatted unparsed output for said docstrings.

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
Lib/ast.py
Lib/test/test_unparse.py