Message139092
| Author |
sandro.tosi |
| Recipients |
docs@python, gwideman, petri.lehtinen, r.david.murray, sandro.tosi |
| Date |
2011年06月25日.16:05:24 |
| SpamBayes Score |
2.4752812e-06 |
| Marked as misclassified |
No |
| Message-id |
<1309017924.91.0.553348245756.issue11669@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Just to make explicit what's happening:
>>> try:
... try:
... raise TypeError()
... finally:
... raise ValueError()
... except TypeError as e:
... print('mmm')
...
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
TypeError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
ValueError
while
>>> try:
... try:
... raise TypeError()
... finally:
... raise ValueError()
... except ValueError as e:
... print ('mmm')
...
mmm |
|