This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benjamin.peterson, brett.cannon, serhiy.storchaka, yselivanov
Date 2019-03-14.09:48:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552556885.52.0.772295389158.issue36287@roundup.psfhosted.org>
In-reply-to
Content
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=[])"
History
Date User Action Args
2019-03-14 09:48:05serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, benjamin.peterson, yselivanov
2019-03-14 09:48:05serhiy.storchakasetmessageid: <1552556885.52.0.772295389158.issue36287@roundup.psfhosted.org>
2019-03-14 09:48:05serhiy.storchakalinkissue36287 messages
2019-03-14 09:48:05serhiy.storchakacreate