What about try:except:finally

Chris Withers chrisw at nipltd.com
Sat Jul 8 12:30:33 EDT 2000


Alan Daniels wrote:
> >Does python support, or if not, would it be cool to have support for
> >try/except/finally?
> 
> No, but just use try/except/else instead. Why it's "else" instead of
> "finally", I have no idea, but this works just fine. Example:

Actually, yes it does ;-)

...but it does something different. I read the discription on page 50 of
David Beazely's Python Essential Reference, but it didn't make much
sense to me :S

cheers,

Chris




More information about the Python-list mailing list