From c5db9e19c047e7bea0e213e3cfa2438c57e1f6a8 Mon Sep 17 00:00:00 2001 From: "ezio.melotti" Date: Wed, 16 Sep 2009 13:14:05 +0000 Subject: [PATCH] #6879 - fix misstatement about exceptions git-svn-id: http://svn.python.org/projects/python/trunk@74825 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Doc/tutorial/errors.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index a0069f5f6f..1351957135 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -218,11 +218,9 @@ exception to occur. For example:: File "", 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 -- 2.11.4.GIT