Re: [python] using try: finally: except
From: Miki Tebeka (miki.tebeka_at_zoran.com)
Date: 06/20/04
- Next message: Jannie Horne: "real, certifiable university degrees for sale"
- Previous message: Mike C. Fletcher: "Re: align on char"
- Maybe in reply to: David Stockwell: "[python] using try: finally: except"
- Next in thread: Mahrt, Dallas: "RE: [python] using try: finally: except"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 20 Jun 2004 10:29:17 +0200 To: David Stockwell <winexpert@hotmail.com>
Hello David,
> In referring to my copy of the python bible, it tells me I can't use all
> three items 'try' except and finally. I can use the t/f or t/e
> combinations though
>
> What combination can i use if i want to catch the exception and still have
> a finally block?
try:
try:
do_something()
except Exception, e:
print "bummer"
finally:
print "at last"
Google this list for why you can't have try/except/finally together.
HTH.
-- ------------------------------------------------------------------------- Miki Tebeka <miki.tebeka@zoran.com> The only difference between children and adults is the price of the toys.
- Next message: Jannie Horne: "real, certifiable university degrees for sale"
- Previous message: Mike C. Fletcher: "Re: align on char"
- Maybe in reply to: David Stockwell: "[python] using try: finally: except"
- Next in thread: Mahrt, Dallas: "RE: [python] using try: finally: except"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|