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 BTaskaya
Recipients BTaskaya, benjamin.peterson, brett.cannon, eamanu, levkivskyi, serhiy.storchaka, yselivanov
Date 2020-03-08.08:56:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583657772.82.0.98883305442.issue36287@roundup.psfhosted.org>
In-reply-to
Content
> It is not so easy for fields like "type_ignores". They are mutable lists, so this approach cannot be applied to them.

What about keeping ASDL signatures in the nodes (). If we know the type of a field (can be parsed in runtime) we can infer the default value of a field. For type_ignores, it is a sequence so if it is empty we can just crop that part.
History
Date User Action Args
2020-03-08 08:56:12BTaskayasetrecipients: + BTaskaya, brett.cannon, benjamin.peterson, serhiy.storchaka, yselivanov, levkivskyi, eamanu
2020-03-08 08:56:12BTaskayasetmessageid: <1583657772.82.0.98883305442.issue36287@roundup.psfhosted.org>
2020-03-08 08:56:12BTaskayalinkissue36287 messages
2020-03-08 08:56:12BTaskayacreate