mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Visit the initial test element of the listmaker for a list
comprehension. Fixes bug reported by Tim Peters.
This commit is contained in:
parent
1113cfc767
commit
5f827f4e9b
1 changed files with 2 additions and 1 deletions
|
@ -4210,7 +4210,8 @@ symtable_node(struct symtable *st, node *n)
|
|||
case listmaker:
|
||||
if (NCH(n) > 1 && TYPE(CHILD(n, 1)) == list_for) {
|
||||
symtable_list_comprehension(st, CHILD(n, 1));
|
||||
break;
|
||||
n = CHILD(n, 0);
|
||||
goto loop;
|
||||
}
|
||||
case atom:
|
||||
if (TYPE(n) == atom && TYPE(CHILD(n, 0)) == NAME) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue