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 gregory.p.smith, gvanrossum, lys.nikolaou, pablogsal, rhettinger, serhiy.storchaka, slebedev
Date 2021-12-24.05:30:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640323857.89.0.349368550307.issue46167@roundup.psfhosted.org>
In-reply-to
Content
Another possibility is actually handled this in the compiler:

if we see an assert with a tuple of two elements, we can assume is basically in the form that we want and proceed as if is in the form
assert A, B

This also feels a bit hacky because the AST is somehow wrong as the assert node is already prepared to differentiate these two cases.
History
Date User Action Args
2021-12-24 05:30:57pablogsalsetrecipients: + pablogsal, gvanrossum, rhettinger, gregory.p.smith, serhiy.storchaka, lys.nikolaou, slebedev
2021-12-24 05:30:57pablogsalsetmessageid: <1640323857.89.0.349368550307.issue46167@roundup.psfhosted.org>
2021-12-24 05:30:57pablogsallinkissue46167 messages
2021-12-24 05:30:57pablogsalcreate