Visit the initial test element of the listmaker for a list

comprehension.  Fixes bug reported by Tim Peters.
This commit is contained in:
Jeremy Hylton 2001-01-23 01:26:20 +00:00
parent 1113cfc767
commit 5f827f4e9b
1 changed files with 2 additions and 1 deletions

View File

@ -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) {