summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-09-16 13:14:05 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-09-16 13:14:05 (GMT)
commit2e85f503b1de28948ebcb3b13b2361f2d66521f5 (patch)
tree40d84ec66feb4f94ae141afc81a577cf543fe701 /Doc/tutorial
parent718b221e06e0e4a5b2ecb43f383b6752bc5631d7 (diff)
downloadcpython-2e85f503b1de28948ebcb3b13b2361f2d66521f5.zip
cpython-2e85f503b1de28948ebcb3b13b2361f2d66521f5.tar.gz
cpython-2e85f503b1de28948ebcb3b13b2361f2d66521f5.tar.bz2
#6879 - fix misstatement about exceptions
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/errors.rst8
1 files changed, 3 insertions, 5 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index a0069f5..1351957 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -218,11 +218,9 @@ exception to occur. For example::
File "<stdin>", line 1, in ?
NameError: HiThere
-The argument to :keyword:`raise` is an exception class or instance to be
-raised. There is a deprecated alternate syntax that separates class and
-constructor arguments; the above could be written as ``raise NameError,
-'HiThere'``. Since it once was the only one available, the latter form is
-prevalent in older code.
+The sole argument to :keyword:`raise` indicates the exception to be raised.
+This must be either an exception instance or an exception class (a class that
+derives from :class:`Exception`).
If you need to determine whether an exception was raised but don't intend to
handle it, a simpler form of the :keyword:`raise` statement allows you to