Message337907
Currently ast.dump() outputs values for optional fields even if they are equal to defaults. This makes the output unnecessary verbose. For example (kind and type_comment are optional): >>> ast.dump(ast.parse('x = 1')) "Module(body=[Assign(targets=[Name(id='x', ctx=Store())], value=Constant(value=1, kind=None), type_comment=None)], type_ignores=[])" | |
| Date | User | Action | Args | | 2019-03-14 09:48:05 | serhiy.storchaka | set | recipients: + serhiy.storchaka, brett.cannon, benjamin.peterson, yselivanov | | 2019-03-14 09:48:05 | serhiy.storchaka | set | messageid: <1552556885.52.0.772295389158.issue36287@roundup.psfhosted.org> | | 2019-03-14 09:48:05 | serhiy.storchaka | link | issue36287 messages | | 2019-03-14 09:48:05 | serhiy.storchaka | create | | |