Author ezio.melotti
Recipients alex, chris.jerdonek, ezio.melotti, ncoghlan, rhettinger
Date 2012-08-29.07:28:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346225323.46.0.20471066352.issue15806@psf.upfronthosting.co.za>
In-reply-to
Content
I think I'm -1 on this.

This saves two lines, but makes the code less explicit, it can't be used for try/except/else or try/except/except, it requires an extra import, the implementation is simple enough that it doesn't necessary need to be in the stdlib, it might encourage bad style, and it's slower.

Some of these downsides are indeed somewhat weak, but the upside of saving two lines is quite weak too IMHO.
History
Date User Action Args
2012-08-29 07:28:45ezio.melottisetrecipients: + ezio.melotti, rhettinger, ncoghlan, alex, chris.jerdonek
2012-08-29 07:28:43ezio.melottisetmessageid: <1346225323.46.0.20471066352.issue15806@psf.upfronthosting.co.za>
2012-08-29 07:28:42ezio.melottilinkissue15806 messages
2012-08-29 07:28:41ezio.melotticreate