Jesús Cea Avión added the comment:

Python2 management should be something like:

"""
Python 2.7.3 (default, Apr 12 2012, 13:11:53) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> try :
...   1/0
... except BaseException as e :
...   try :
...     raise
...   finally :
...     try :
...       raise RuntimeError("TEST")
...     except :
...       pass
... 
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
ZeroDivisionError: integer division or modulo by zero
"""

Sorry, UGLY.

Idea from 
http://www.doughellmann.com/articles/how-tos/python-exception-handling/index.html

----------

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

Reply via email to