Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 58229:c2fdf25329ff legacy-trunk
Issue #2335: Backport set literals syntax from Python 3.x.
| author | Alexandre Vassalotti <alexandre@peadrop.com> |
|---|---|
| date | Sat, 09 Jan 2010 23:35:54 +0000 |
| parents | 137115e395d8 |
| children | edfed0e32ced |
line wrap: on
line diff
--- a/Python/symtable.c Sat Jan 09 18:50:50 2010 +0000 +++ b/Python/symtable.c Sat Jan 09 23:35:54 2010 +0000 @@ -1211,6 +1211,9 @@ VISIT_SEQ(st, expr, e->v.Dict.keys); VISIT_SEQ(st, expr, e->v.Dict.values); break; + case Set_kind: + VISIT_SEQ(st, expr, e->v.Set.elts); + break; case ListComp_kind: VISIT(st, expr, e->v.ListComp.elt); VISIT_SEQ(st, comprehension, e->v.ListComp.generators);
