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

Shane Holloway (IEEE) shane.holloway at ieee.org
Thu May 5 00:45:58 CEST 2005


And per the PEP, I think the explaining that::

     try:
         A
     except:
         B
     else:
         C
     finally:
         D

is *exactly* equivalent to::

     try:
         try:
             A
         except:
             B
         else:
             C
     finally:
         D

Resolved all the questions about control flow for me.  Well, assuming 
that implementation makes the explanation truth.  ;)


More information about the Python-Dev mailing list