Spotted on c.l.python. Although Pythonwin is mentioned, python.exe
gives the same results - as does 1.5.2.
Seems a reasonable question...
[Also, if Robin hasn't been invited to join us here, I think it could
make some sense...]
Mark.
-------- Original Message --------
Subject: try...else
Date: Fri, 22 Dec 2000 18:02:27 +0000
From: Robin Becker
def bang(): .... try: .... return 'return value' .... except: .... print 'bang failed' .... else: .... print 'bang succeeded' .... bang() 'return value'
is this a 'feature' or bug. The 2.0 docs seem not to mention return/continue except for try finally. -- Robin Becker
participants (8)
-
Fred L. Drake
-
M.-A. Lemburg
-
Mark Hammond
-
Michael Hudson
-
Moshe Zadka
-
Moshe Zadka
-
Thomas Wouters
-
Tim Peters