[Python-checkins] cpython (2.7): String exceptions aren't just deprecated, they are gone.

raymond.hettinger python-checkins at python.org
Sat Oct 13 04:44:41 CEST 2012


http://hg.python.org/cpython/rev/b6c8ba7538a2
changeset:   79706:b6c8ba7538a2
branch:      2.7
parent:      79704:751a91e332d9
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Oct 12 19:44:35 2012 -0700
summary:
  String exceptions aren't just deprecated, they are gone.

files:
  Doc/reference/compound_stmts.rst |  5 +----
  1 files changed, 1 insertions(+), 4 deletions(-)


diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -238,10 +238,7 @@
 expression, that expression is evaluated, and the clause matches the exception
 if the resulting object is "compatible" with the exception.  An object is
 compatible with an exception if it is the class or a base class of the exception
-object, a tuple containing an item compatible with the exception, or, in the
-(deprecated) case of string exceptions, is the raised string itself (note that
-the object identities must match, i.e. it must be the same string object, not
-just a string with the same value).
+object, or a tuple containing an item compatible with the exception.
 
 If no except clause matches the exception, the search for an exception handler
 continues in the surrounding code and on the invocation stack.  [#]_

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list