[New-bugs-announce] [issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

Peibolvig report at bugs.python.org
Wed Jun 25 01:41:00 CEST 2014


New submission from Peibolvig:

At point 9.8 of the 3.4.1 version documentation, ( https://docs.python.org/3/tutorial/classes.html#exceptions-are-classes-too ), there is an example of two ways to use the 'raise' statement:
raise Class
raise Instance

The next two lines, state: 
"In the first form, Class must be an instance of type or of a class derived from it. The first form is a shorthand for: raise Class()"

That only says something about the first form twice.
I think that the correct way would be:
"In the first form, Class must be an instance of type or of a class derived from it. The SECOND form is a shorthand for: raise Class()"

----------
assignee: docs at python
components: Documentation
messages: 221511
nosy: Peibolvig, docs at python
priority: normal
severity: normal
status: open
title: Error in documentation of point 9.8 'Exceptions are classes too'
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21864>
_______________________________________


More information about the New-bugs-announce mailing list