mirror of https://github.com/python/cpython.git
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
|
@ -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…
Reference in New Issue