From: Raymond Hettinger Date: Mon, 3 Oct 2005 16:40:36 +0000 (+0000) Subject: Correct docs for empty raise when no exception is active. X-Git-Tag: v2.4.3c1~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4388f02cd232dda4193f1923c67b58db64372004;p=thirdparty%2FPython%2Fcpython.git Correct docs for empty raise when no exception is active. --- diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex index b1389e0badd0..3e4b69ed9d9b 100644 --- a/Doc/ref/ref6.tex +++ b/Doc/ref/ref6.tex @@ -524,8 +524,9 @@ from __future__ import generators 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 \exception{Queue.Empty} exception is -raised indicating this error. +active in the current scope, a \exception{TypeError} exception is +raised indicating that this is an error (if running under IDLE, a +\exception{Queue.Empty} exception is raised instead}. \index{exception} \indexii{raising}{exception}