Kaydet (Commit) bee0d467 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Correct docs for empty raise when no exception is active.

üst 4094d044
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment