Ned Batchelder added the comment:

I find the workarounds mentioned here to be baroque and confusing.  The concept 
of a default value to return in the case of an empty iterator is 
straightforward.  I'm +1 on adding this as well.

----------
nosy: +nedbat

_______________________________________
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