[Python-checkins] cpython (3.2): Issue #13683: raise with no exception in scope throws a RuntimeError; fix by
sandro.tosi
python-checkins at python.org
Sun Jan 1 12:18:43 CET 2012
http://hg.python.org/cpython/rev/420e01156272
changeset: 74219:420e01156272
branch: 3.2
parent: 74217:e0a4e6538182
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Jan 01 12:17:15 2012 +0100
summary:
Issue #13683: raise with no exception in scope throws a RuntimeError; fix by Ramchandra Apte
files:
Doc/reference/simple_stmts.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -495,8 +495,8 @@
If no expressions are present, :keyword:`raise` re-raises the last exception
that was active in the current scope. If no exception is active in the current
-scope, a :exc:`TypeError` exception is raised indicating that this is an error
-(if running under IDLE, a :exc:`queue.Empty` exception is raised instead).
+scope, a :exc:`RuntimeError` exception is raised indicating that this is an
+error.
Otherwise, :keyword:`raise` evaluates the first expression as the exception
object. It must be either a subclass or an instance of :class:`BaseException`.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list