Message173818
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 |
|
Date |
User |
Action |
Args |
2012-10-26 01:34:56 | jcea | set | recipients:
+ jcea, gregory.p.smith, neologix, Mark.Gius |
2012-10-26 01:34:56 | jcea | set | messageid: <1351215296.23.0.825444028415.issue16327@psf.upfronthosting.co.za> |
2012-10-26 01:34:56 | jcea | link | issue16327 messages |
2012-10-26 01:34:55 | jcea | create | |
|