[Python-3000-checkins] r51632 - python/branches/p3yk/Python/Python-ast.c python/branches/p3yk/Python/symtable.c

Neal Norwitz nnorwitz at gmail.com
Tue Aug 29 08:11:48 CEST 2006


Can you add a test for this?

On 8/28/06, georg.brandl <python-3000-checkins at python.org> 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
> Python-3000-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-3000-checkins
>


More information about the Python-3000-checkins mailing list