]> granicus.if.org Git - python/commitdiff
Fix set literals not being visited in symtable creation.
authorGeorg Brandl <georg@python.org>
Mon, 28 Aug 2006 16:38:22 +0000 (16:38 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 28 Aug 2006 16:38:22 +0000 (16:38 +0000)
Python/Python-ast.c
Python/symtable.c

index 86f09edbffd7226dcb0961916d68fd6e0ec98dc4..b322039a48c80a75c247adf5a72e8f9f41226b04 100644 (file)
@@ -3043,7 +3043,7 @@ init_ast(void)
         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)
index bf1596078534fa2b96baacac4b2649fa60fcb0c0..64eeb5330454fc955c23885b2baecfdd062f7e68 100644 (file)
@@ -1147,6 +1147,9 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
                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;