Re: None

Guido.van.Rossum@cwi.nl
Sat, 11 Dec 1993 00:28:19 +0100

> My proposal is to add an 'else:' statement to the try:except: statement.
> This statement would only be executed if the try: succeeded. This would be
> consistent with the while:else: statement and for for:else: statement. The
> code fragment would become:
>
> try:
> file = open('...', 'r')
> except:
> data = process_something_else()
> else:
> data = process_file(file)

Brilliant!

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>