What about try:except:finally
Olivier Dagenais
olivierS.dagenaisP at canadaA.comM
Fri Jul 7 09:56:39 EDT 2000
If I remember the tutorial correctly, it doesn't support finally with
anything else. I have a feeling you would need to do:
try:
#init
try:
# stuff
except:
# stuff
finally:
#stuff
...that is, assuming that your "except" would only catch specific exceptions
that you would want to prepare an error message with.
--
----------------------------------------------------------------------
Olivier A. Dagenais - Carleton University - Computer Science III
"Thomas Weholt" <thomas at cintra.no> wrote in message
news:3967d908.363887342 at news.online.no...
> Hi,
>
> Does python support, or if not, would it be cool to have support for :
>
> try:
> # some code
> except :
> # catch exception
> finally:
> # clean up whatever
>
> Thomas
More information about the Python-list
mailing list