A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-May/053402.html below:

[Python-Dev] Pre-PEP: Unifying try-except and try-finally

[Python-Dev] Pre-PEP: Unifying try-except and try-finally [Python-Dev] Pre-PEP: Unifying try-except and try-finallyEric Nieuwland eric.nieuwland at xs4all.nl
Thu May 5 17:07:21 CEST 2005
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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4