Can you add a test for this?
On 8/28/06, georg.brandl <[email protected]> wrote: > Author: georg.brandl > Date: Mon Aug 28 18:38:22 2006 > New Revision: 51632 > > Modified: > python/branches/p3yk/Python/Python-ast.c > python/branches/p3yk/Python/symtable.c > Log: > Fix set literals not being visited in symtable creation. > > > > Modified: python/branches/p3yk/Python/Python-ast.c > ============================================================================== > --- python/branches/p3yk/Python/Python-ast.c (original) > +++ python/branches/p3yk/Python/Python-ast.c Mon Aug 28 18:38:22 2006 > @@ -3043,7 +3043,7 @@ > if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return; > if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0) > return; > - if (PyModule_AddStringConstant(m, "__version__", "51600") < 0) > + if (PyModule_AddStringConstant(m, "__version__", "51631") < 0) > return; > if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return; > if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0) > > Modified: python/branches/p3yk/Python/symtable.c > ============================================================================== > --- python/branches/p3yk/Python/symtable.c (original) > +++ python/branches/p3yk/Python/symtable.c Mon Aug 28 18:38:22 2006 > @@ -1147,6 +1147,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: > if (!symtable_new_tmpname(st)) > return 0; > _______________________________________________ > Python-3000-checkins mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-3000-checkins > _______________________________________________ Python-3000-checkins mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000-checkins
