Author dabeaz
Recipients Julian, dabeaz, doughellmann, ncoghlan, nedbat, r.david.murray, rhettinger, skrah, twouters
Date 2013-06-03.22:50:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370299810.72.0.652120016181.issue18111@psf.upfronthosting.co.za>
In-reply-to
Content
I could have used this feature myself somewhat recently.  It was in some code involving document matching where zero or more possible candidates were assigned a score and I was trying to find the max score.  The fact that an empty list was a possibility complicated everything because I had to add extra checks for it.   max(scores, default=0) would have been a lot simpler.
History
Date User Action Args
2013-06-03 22:50:10dabeazsetrecipients: + dabeaz, twouters, rhettinger, ncoghlan, nedbat, doughellmann, r.david.murray, skrah, Julian
2013-06-03 22:50:10dabeazsetmessageid: <1370299810.72.0.652120016181.issue18111@psf.upfronthosting.co.za>
2013-06-03 22:50:10dabeazlinkissue18111 messages
2013-06-03 22:50:10dabeazcreate