Permalink
Browse files
bpo-38870: Expose a function to unparse an ast object in the ast modu…
…le (GH-17302) Add ast.unparse() as a function in the ast module that can be used to unparse an ast.AST object and produce a string with code that would produce an equivalent ast.AST object when parsed.
- Loading branch information
Showing
with
772 additions
and 751 deletions.
- +13 −0 Doc/library/ast.rst
- +5 −0 Doc/whatsnew/3.9.rst
- +693 −0 Lib/ast.py
- +57 −47 Lib/test/{test_tools → }/test_unparse.py
- +4 −0 Misc/NEWS.d/next/Library/2019-11-20-22-43-48.bpo-38870.rLVZEv.rst
- +0 −704 Tools/parser/unparse.py
Oops, something went wrong.
Minor typo here : necesarily -> necessarily