Message93536
| Author |
pitrou |
| Recipients |
aguiar, chuck, ezio.melotti, pitrou |
| Date |
2009年10月04日.11:21:27 |
| SpamBayes Score |
5.079547e-06 |
| Marked as misclassified |
No |
| Message-id |
<1254655289.52.0.849755463103.issue5395@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok, I get it, you want f.close() to always succeed, even if the
underlying file descriptor has already been closed.
Well, I so no reason to introduce a helper anyway, the following four
lines are much more readable and explicit:
try:
f.close()
except IOError:
pass |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年10月04日 11:21:29 | pitrou | set | recipients:
+ pitrou, aguiar, ezio.melotti, chuck |
| 2009年10月04日 11:21:29 | pitrou | set | messageid: <1254655289.52.0.849755463103.issue5395@psf.upfronthosting.co.za> |
| 2009年10月04日 11:21:28 | pitrou | link | issue5395 messages |
| 2009年10月04日 11:21:27 | pitrou | create |
|