[Python-Dev] [Python-checkins] r86540 - in python/branches/py3k: Parser/asdl_c.py Python/Python-ast.c

Brian Curtin brian.curtin at gmail.com
Sat Nov 20 05:24:38 CET 2010


On Fri, Nov 19, 2010 at 20:01, benjamin.peterson <python-checkins at python.org
> wrote:

> Author: benjamin.peterson
> Date: Sat Nov 20 03:01:45 2010
> New Revision: 86540
>
> Log:
> c89 declarations
>
> Modified:
>   python/branches/py3k/Parser/asdl_c.py
>   python/branches/py3k/Python/Python-ast.c
>
> Modified: python/branches/py3k/Parser/asdl_c.py
>
> ==============================================================================
> --- python/branches/py3k/Parser/asdl_c.py       (original)
> +++ python/branches/py3k/Parser/asdl_c.py       Sat Nov 20 03:01:45 2010
> @@ -366,9 +366,9 @@
>         self.emit("obj2ast_%s(PyObject* obj, %s* out, PyArena* arena)" %
> (name, ctype), 0)
>         self.emit("{", 0)
>         self.emit("PyObject* tmp = NULL;", 1)
> +        self.emit("int isinstance;", 1)
>         # Prevent compiler warnings about unused variable.
>         self.emit("tmp = tmp;", 1)
> -        self.emit("int isinstance;", 1)
>         self.emit("", 0)
>
>     def sumTrailer(self, name, add_label=False):
>
> Modified: python/branches/py3k/Python/Python-ast.c
>
> ==============================================================================
> --- python/branches/py3k/Python/Python-ast.c    (original)
> +++ python/branches/py3k/Python/Python-ast.c    Sat Nov 20 03:01:45 2010
> @@ -3375,8 +3375,8 @@
>  obj2ast_mod(PyObject* obj, mod_ty* out, PyArena* arena)
>  {
>         PyObject* tmp = NULL;
> -        tmp = tmp;
>         int isinstance;
> +        tmp = tmp;


Windows builds fail due to this change.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20101119/57f14c49/attachment.html>


More information about the Python-Dev mailing list