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 pablogsal
Recipients blarsen, gvanrossum, pablogsal
Date 2020-09-03.22:28:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599172118.89.0.432689547579.issue41697@roundup.psfhosted.org>
In-reply-to
Content
Given that using asdl_seq currently means casting from void*, we could maybe have a set of macros like asdl_seq_GET that are type specialized (there aren't many of them) and in debug mode they can check that the ->kind attribute is consistent with the specific type that the macro represents. For instance asdl_seq_GET_EXPR will check that the ->kind attribute is consistent with a valid EXPR. It will not catch all problems but it will catch almost all the typical ones in simple sequences.
History
Date User Action Args
2020-09-03 22:28:38pablogsalsetrecipients: + pablogsal, gvanrossum, blarsen
2020-09-03 22:28:38pablogsalsetmessageid: <1599172118.89.0.432689547579.issue41697@roundup.psfhosted.org>
2020-09-03 22:28:38pablogsallinkissue41697 messages
2020-09-03 22:28:38pablogsalcreate