[FRPythoneers] Exception handling Q

Rob Riggs rob at pangalactic.org
Mon Jul 22 22:48:04 MDT 2002


It's all explained here:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=396601B3.1EEA71EA%40ina.fr&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3Dpython%2Bexception%2Bfinally%26sa%3DN%26tab%3Dwg




Matt Gushee wrote:

>Just out of curiosity ...
>
>Is there a good reason Python forces you to write:
>
>    try:
>        try:
>            order_breakfast()
>        except Spam:
>            print "I don't like spam!!"
>    finally:
>        eat()
>
>instead of
>
>    try:
>        order_breakfast()
>    except Spam:
>        print "I don't like spam!!"
>    finally:
>        eat()
>
>That limitation has always seemed a bit perverse to me.
>






More information about the FRPythoneers mailing list