Kaydet (Commit) 76105997 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added ZeroDivisionError except clauses.

üst befa2936
......@@ -177,10 +177,12 @@ print 'try_stmt' # 'try' ':' suite (except_clause ':' suite)* ['finally' ':' sui
try: pass
try: 1/0
except RuntimeError: pass
except ZeroDivisionError: pass
try: 1/0
except EOFError: pass
except TypeError, msg: pass
except RuntimeError, msg: pass
except ZeroDivisionError, msg: pass
except: pass
try: pass
finally: pass
......@@ -291,6 +293,7 @@ for i in range(10):
try: 1/0
except NameError: pass
except RuntimeError: pass
except ZeroDivisionError: pass
except TypeError: pass
finally: pass
try: pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment