Message216652
| Author |
martin.panter |
| Recipients |
martin.panter, matrixise, pitrou, rhettinger, vstinner |
| Date |
2014年04月17日.04:29:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1397708977.85.0.721802608093.issue21259@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If you do go ahead and add "except Exception" clauses, maybe look around at what other exceptions are being handled. The other day I stumbled across this in "tkinter.font" module:
try:
...
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
pass
It would have been simpler (and semantically equivalent) to write
try:
...
except Exception:
pass |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年04月17日 04:29:37 | martin.panter | set | recipients:
+ martin.panter, rhettinger, pitrou, vstinner, matrixise |
| 2014年04月17日 04:29:37 | martin.panter | set | messageid: <1397708977.85.0.721802608093.issue21259@psf.upfronthosting.co.za> |
| 2014年04月17日 04:29:37 | martin.panter | link | issue21259 messages |
| 2014年04月17日 04:29:37 | martin.panter | create |
|