[Python-checkins] r53379 - sandbox/trunk/2to3/Grammar.txt

Brett Cannon brett at python.org
Thu Jan 11 20:06:05 CET 2007


Grammar.txt looks to be the same as Grammar/Grammar from the p3yk
branch.  Is that true?  If so, you might want to consider doing an
external definition in the 2to3 directory in svn to pull in the
Grammar directory (see the dev FAQ on how to do this).  That was you
always track any changes to the Py3K grammar.

-Brett

On 1/11/07, guido.van.rossum <python-checkins at python.org> wrote:
> Author: guido.van.rossum
> Date: Thu Jan 11 18:54:07 2007
> New Revision: 53379
>
> Modified:
>    sandbox/trunk/2to3/Grammar.txt
> Log:
> Make the grammar accept 'as' in an except clause, so fix_except can be
> idempotent.
>
>
> Modified: sandbox/trunk/2to3/Grammar.txt
> ==============================================================================
> --- sandbox/trunk/2to3/Grammar.txt      (original)
> +++ sandbox/trunk/2to3/Grammar.txt      Thu Jan 11 18:54:07 2007
> @@ -85,7 +85,7 @@
>  with_stmt: 'with' test [ with_var ] ':' suite
>  with_var: 'as' expr
>  # NB compile.c makes sure that the default except clause is last
> -except_clause: 'except' [test [',' test]]
> +except_clause: 'except' [test [(',' | 'as') test]]
>  suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
>
>  # Backward compatibility cruft to support:
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>


More information about the Python-checkins mailing list