diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-05-14 20:13:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 20:13:50 (GMT) |
commit | ce21cfca7bb2d18921bc4ac27cb064726996c519 (patch) | |
tree | 04a1dad07cbb70619149b3dc867b515ed64b62f5 /Modules | |
parent | bcc30360951a303aa72b0502b77aad2c5f09f30d (diff) | |
download | cpython-ce21cfca7bb2d18921bc4ac27cb064726996c519.zip cpython-ce21cfca7bb2d18921bc4ac27cb064726996c519.tar.gz cpython-ce21cfca7bb2d18921bc4ac27cb064726996c519.tar.bz2 |
bpo-40618: Disallow invalid targets in augassign and except clauses (GH-20083)
This commit fixes the new parser to disallow invalid targets in the
following scenarios:
- Augmented assignments must only accept a single target (Name,
Attribute or Subscript), but no tuples or lists.
- `except` clauses should only accept a single `Name` as a target.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions