[FRPythoneers] Exception handling Q

Matt Gushee mgushee at havenrock.com
Mon Jul 22 22:22:09 MDT 2002


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.

-- 
Matt Gushee
Englewood, Colorado, USA
mgushee at havenrock.com
http://www.havenrock.com/



More information about the FRPythoneers mailing list