[Python-Dev] PEP 340: Deterministic Finalisation (new PEP draft, either a competitor or update to PEP 340)

Michael Hudson mwh at python.net
Sun May 8 21:33:33 CEST 2005


Jp Calderone <exarkun at divmod.com> writes:

>   If such a construct is to be introduced, the ideal spelling would seem to be:
>
>     for [VAR in] EXPR:
>         BLOCK1
>     finally:
>         BLOCK2

Does this mean that adding 

    finally:
        pass

to a for block would make the for loop behave differently?

Cheers,
mwh

-- 
  I really hope there's a catastrophic bug in some future e-mail
  program where if you try and send an attachment it cancels your
  ISP account, deletes your harddrive, and pisses in your coffee
                                                         -- Adam Rixey


More information about the Python-Dev mailing list