Message237493
| Author |
martin.panter |
| Recipients |
SilentGhost, a3nm, collinwinter, martin.panter |
| Date |
2015年03月08日.01:49:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1425779353.45.0.72777012309.issue23556@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
For the Python 3 case, the documentation is vague and probably wrong, depending on what you understand "the current scope" to mean. I think it should read something like
. . . raise re-raises the current exception that is being handled. If no exception is being handled, a RuntimeError exception is raised indicating that this is an error.
I’m not sure but I suspect Python 2 is different because does not save the original exception when it handles a nested exception. In other words, at the point where the nested "bar" exception is raised inside the "foo" handler, Python forgets that "foo" was being handled. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年03月08日 01:49:13 | martin.panter | set | recipients:
+ martin.panter, collinwinter, SilentGhost, a3nm |
| 2015年03月08日 01:49:13 | martin.panter | set | messageid: <1425779353.45.0.72777012309.issue23556@psf.upfronthosting.co.za> |
| 2015年03月08日 01:49:13 | martin.panter | link | issue23556 messages |
| 2015年03月08日 01:49:12 | martin.panter | create |
|