Message169348
I think the zipfile example is really a bad example. IMO, it would
best be written as
try:
return bool(EndRecData(fp))
except IOError:
return False
i.e. there shouldn't be a pass statement at all in this code, and the if can be dropped whether you use try-except or with. |
|
Date |
User |
Action |
Args |
2012-08-29 07:51:30 | loewis | set | recipients:
+ loewis, rhettinger, ncoghlan, ezio.melotti, alex, chris.jerdonek |
2012-08-29 07:51:30 | loewis | set | messageid: <1346226690.57.0.906425811601.issue15806@psf.upfronthosting.co.za> |
2012-08-29 07:51:30 | loewis | link | issue15806 messages |
2012-08-29 07:51:29 | loewis | create | |
|