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 ncoghlan
Recipients BTaskaya, Guido.van.Rossum, Mark.Shannon, brandtbucher, freundTech, ncoghlan, pablogsal
Date 2021-04-25.07:10:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619334649.42.0.0430994011466.issue43892@roundup.psfhosted.org>
In-reply-to
Content
Working on the unparser picked up an inconsistency I had previously missed: aside from named expressions, "target" attributes in the AST are generally full expression subnodes, rather than identifier attributes. Identifier attributes on nodes are typically called "name", including in the originally implemented MatchAs node.

Accordingly, I've switched both MatchStar and MatchAs over to having "name" attributes instead of "target" attributes.
History
Date User Action Args
2021-04-25 07:10:49ncoghlansetrecipients: + ncoghlan, Mark.Shannon, Guido.van.Rossum, pablogsal, brandtbucher, BTaskaya, freundTech
2021-04-25 07:10:49ncoghlansetmessageid: <1619334649.42.0.0430994011466.issue43892@roundup.psfhosted.org>
2021-04-25 07:10:49ncoghlanlinkissue43892 messages
2021-04-25 07:10:49ncoghlancreate