]> granicus.if.org Git - python/commitdiff
Correct docs for empty raise when no exception is active.
authorRaymond Hettinger <python@rcn.com>
Mon, 3 Oct 2005 16:39:51 +0000 (16:39 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 3 Oct 2005 16:39:51 +0000 (16:39 +0000)
Doc/ref/ref6.tex

index b1389e0badd002cc939006f2896bae17b98c3b82..3e4b69ed9d9b30d91dc38907ffc05a00d14c2c95 100644 (file)
@@ -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}