Reinhold Birkenfeld wrote:
> Changes to the grammar
>
> The grammar for the try statement, which is currently
>
> try_stmt: ('try' ':' suite (except_clause ':' suite)+
> ['else' ':' suite] | 'try' ':' suite 'finally' ':'
> suite)
>
> would have to become
>
> try_stmt: ('try' ':' suite (except_clause ':' suite)+
> ['else' ':' suite] ['finally' ':' suite] |
> 'try' ':' suite (except_clause ':' suite)*
> ['else' ':' suite] 'finally' ':' suite)
Wouldn't it be easier to change it to:
try_stmt: ('try' ':' suite (except_clause ':' suite)*
['else' ':' suite] ['finally' ':' suite] )
?
--eric
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com