]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36287: Make ast.dump() not output optional fields and attributes with default...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Mar 2020 22:07:47 +0000 (00:07 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2020 22:07:47 +0000 (00:07 +0200)
commitb7e9525f9c7ef02a1d2ad8253afdeb733b0951d4
treea5a765156210e426d89e5f19a75f932dd2165834
parent85f5a69ae1541271286bb0f0e0303aabf792dd5c
bpo-36287: Make ast.dump() not output optional fields and attributes with default values. (GH-18843)

The default values for optional fields and attributes of AST nodes are now set
as class attributes (e.g. Constant.kind is set to None).
Doc/library/ast.rst
Lib/ast.py
Lib/test/test_ast.py
Misc/NEWS.d/next/Library/2020-03-08-09-53-55.bpo-36287.mxr5m8.rst [new file with mode: 0644]
Parser/asdl_c.py
Python/Python-ast.c