Message190571
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. |
|
Date |
User |
Action |
Args |
2013-06-03 22:50:10 | dabeaz | set | recipients:
+ dabeaz, twouters, rhettinger, ncoghlan, nedbat, doughellmann, r.david.murray, skrah, Julian |
2013-06-03 22:50:10 | dabeaz | set | messageid: <1370299810.72.0.652120016181.issue18111@psf.upfronthosting.co.za> |
2013-06-03 22:50:10 | dabeaz | link | issue18111 messages |
2013-06-03 22:50:10 | dabeaz | create | |
|