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-April/053150.html below:

[Python-Dev] PEP 340 - possible new name for block-statement

[Python-Dev] PEP 340 - possible new name for block-statement [Python-Dev] PEP 340 - possible new name for block-statementJosiah Carlson jcarlson at uci.edu
Fri Apr 29 19:08:22 CEST 2005
Nick Coghlan <ncoghlan at gmail.com> wrote:
>          # Non-finalised semantics
>          arg = None
>          while True:
>              try:
>                  VAR1 = next(itr, arg)
>              except StopIteration:
>                  BLOCK2
>                  break
>              arg = None
>              BLOCK1

And that bad boy should be...

         # Non-finalised semantics
         ex_block_2 = False
         arg = None
         while True:
             try:
                 VAR1 = next(itr, arg)
             except StopIteration:
                 ex_block_2 = True
                 break
             arg = None
             BLOCK1
         if ex_block_2:
             BLOCK2

Josiah Carlson wrote:
> Indeed, I also mentioned this on Wednesday.

Though I was somewhat incorrect as code examples I offered express the
actual intent.

 - Josiah

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