Message221511
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()" |
|
Date |
User |
Action |
Args |
2014-06-24 23:41:00 | Peibolvig | set | recipients:
+ Peibolvig, docs@python |
2014-06-24 23:41:00 | Peibolvig | set | messageid: <1403653260.15.0.739232303856.issue21864@psf.upfronthosting.co.za> |
2014-06-24 23:41:00 | Peibolvig | link | issue21864 messages |
2014-06-24 23:41:00 | Peibolvig | create | |
|