Author loewis
Recipients alex, chris.jerdonek, ezio.melotti, loewis, ncoghlan, rhettinger
Date 2012-08-29.07:51:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346226690.57.0.906425811601.issue15806@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-29 07:51:30loewissetrecipients: + loewis, rhettinger, ncoghlan, ezio.melotti, alex, chris.jerdonek
2012-08-29 07:51:30loewissetmessageid: <1346226690.57.0.906425811601.issue15806@psf.upfronthosting.co.za>
2012-08-29 07:51:30loewislinkissue15806 messages
2012-08-29 07:51:29loewiscreate