Commit 5f827f4e authored by Jeremy Hylton's avatar Jeremy Hylton

Visit the initial test element of the listmaker for a list

comprehension.  Fixes bug reported by Tim Peters.
parent 1113cfc7
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment