classification
Title: Language Ref "raise" doc misssing "from None"
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Document 'from None' in raise statement doc.
View: 17188
Assigned To: docs@python Nosy List: docs@python, rurpy2
Priority: normal Keywords:

Created on 2013-12-17 03:47 by rurpy2, last changed 2013-12-20 23:33 by terry.reedy. This issue is now closed.

Messages (1)
msg206400 - (view) Author: rurpy (rurpy2) Date: 2013-12-17 03:47
In the current (3.3.3 and 3.4dev) Language Reference Manual, the section on the Raise statement fails to mention that the second expression can be None (per PEP-409/415) or the special behavior (suppressing a chained exception) that ensues.  Rather it explicitly states it can not be None:
 "...the second expression must be another exception class  or instance..."

It appears that although the Exceptions section of the Library Reference was updated when PEP-409/415 was implemented, the Language Reference was not.
History
Date User Action Args
2013-12-20 23:33:54terry.reedysetstatus: open -> closed
type: enhancement
superseder: Document 'from None' in raise statement doc.
resolution: duplicate
stage: resolved
2013-12-17 03:47:52rurpy2create