mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)
This commit is contained in:
parent
f1606a5ba5
commit
aa0f056a00
7 changed files with 28 additions and 8 deletions
|
@ -1145,7 +1145,7 @@ _PyPegen_get_expr_name(expr_ty e)
|
|||
}
|
||||
}
|
||||
|
||||
static inline expr_ty
|
||||
expr_ty
|
||||
_PyPegen_get_last_comprehension_item(comprehension_ty comprehension) {
|
||||
if (comprehension->ifs == NULL || asdl_seq_LEN(comprehension->ifs) == 0) {
|
||||
return comprehension->iter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue