Nick Coghlan <[EMAIL PROTECTED]> 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

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to