[New-bugs-announce] [issue13683] Docs in Python 3:raise statement mistake
report at bugs.python.org
Fri Dec 30 16:34:14 CET 2011
New submission from maniram maniram <maniandram01 at gmail.com>:
In the Python 3 docs for the raise statement, http://docs.python.org/py3k/reference/simple_stmts.html#the-raise-statement,the docs say "If no exception is active in the current scope, a TypeError exception is raised indicating that this is an error (if running under IDLE, a queue.Empty exception is raised instead).
This is wrong in Python 3 because raise raises a RuntimeError and IDLE does the same (does not raise a queue.Empty Exception).
The text should be "If no exception is active in the current scope, a RuntimeError exception is raised indicating that this is an error."
assignee: docs at python
nosy: docs at python, maniram.maniram
title: Docs in Python 3:raise statement mistake
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce