bpo-36287: Make ast.dump() not output optional fields and attributes. by serhiy-storchaka · Pull Request #18843 · python/cpython

@serhiy-storchaka

Values for optional fields and attributes of AST nodes are now set as
class attributes (e.g. Constant.kind is set to None).

@serhiy-storchaka

pablogsal

pablogsal

@serhiy-storchaka

@serhiy-storchaka

@serhiy-storchaka

pablogsal

@serhiy-storchaka

hroncok added a commit to hroncok/astunparse that referenced this pull request

Jul 8, 2020

@hroncok

colesbury referenced this pull request in colesbury/nogil

Oct 6, 2021
…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).

0dminnimda