Message177158
I rewrote the relevant section of the module docs (since they were a bit murky in other ways as well).
Since I didn't answer the question earlier, the main reason a bare raise is permitted is because it's designed to be used to a bare except clause (e.g. when rolling back a database transaction as a result of an error). While you could achieve the same thing now with "except BaseException", the requirement for all exceptions to inherit from BaseException is relatively recent - back in the days of string exceptions there was simply no way to catch arbitrary exceptions *and* give them a name. |
|
Date |
User |
Action |
Args |
2012-12-08 12:27:30 | ncoghlan | set | recipients:
+ ncoghlan, georg.brandl, Arfrever, ethan.furman, python-dev, Tyler.Crompton |
2012-12-08 12:27:30 | ncoghlan | set | messageid: <1354969650.24.0.954338949246.issue15209@psf.upfronthosting.co.za> |
2012-12-08 12:27:30 | ncoghlan | link | issue15209 messages |
2012-12-08 12:27:29 | ncoghlan | create | |
|