Author Anthony Sottile
Recipients Anthony Sottile, brandtbucher, freundTech, gvanrossum, ncoghlan
Date 2021-05-01.03:25:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
at least for static analysis of other python constructs it's very convenient to know from a `Name` node alone whether it's being used in a read or write context -- without this information an ast traversal needs to maintain more information about whether it's a read or write context

for pyflakes this is especially important as it needs to know what names are defined in scope (and referenced in scope) to produce diagnostic messages

for other tools like `dead` / `vulture` it's useful to identify introduced and referenced names similarly

the `as` in `with` does and the target for assignment expressions so I would expect the similar constructs in `match` to do so as well

`Name` nodes are also useful for better diagnostic messages as they contain positioning information, which isn't easily extracted from `MatchAs`, etc. -- if I recall correctly, the `asname` for imports was recently extended to add this information for the same purpose
Date User Action Args
2021-05-01 03:25:43Anthony Sottilesetrecipients: + Anthony Sottile, gvanrossum, ncoghlan, brandtbucher, freundTech
2021-05-01 03:25:43Anthony Sottilesetmessageid: <>
2021-05-01 03:25:43Anthony Sottilelinkissue43994 messages
2021-05-01 03:25:42Anthony Sottilecreate