David Beazley added the comment:

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.

----------
nosy: +dabeaz

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18111>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to