Sandro Tosi <sandro.t...@gmail.com> added the comment:

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

----------
nosy: +sandro.tosi

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11669>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to