Message173818
| Author |
jcea |
| Recipients |
Mark.Gius, gregory.p.smith, jcea, neologix |
| Date |
2012年10月26日.01:34:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1351215296.23.0.825444028415.issue16327@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|