commit | f74225d63b84a4d3b508fd5657cfe2596633876a | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Mon Feb 26 21:10:16 2007 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Mon Feb 26 21:10:16 2007 +0000 |
tree | 572bea5b82c03c9b9267944370a2f43be0dd7945 | |
parent | 6baa4c4cc6d303bfdac7c6fd21371f3bc48c7e06 [diff] [blame] |
You can no longer catch non-BaseException objects; TypeError is raised if such an object is listed in an 'except' clause.
diff --git a/Misc/NEWS b/Misc/NEWS index c20793e..91e1f02 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -28,6 +28,8 @@ Core and Builtins ----------------- +- Objects listed in an 'except' clause must inherit from BaseException. + - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone; and .keys(), .items(), .values() return dict views.