Nick Coghlan added the comment: To me, the Python-specific difference that makes this useful for us but not for others is *precisely* the fact that the simple idiom:
x = min(seq) if seq else default is broken for iterators that don't provide __len__ or __bool__, while the even simpler: x = min(seq) is broken for the empty iterable. However, I think we should explicitly disallow the combination of multiple positional arguments *and* the new default argument. If you don't know the length of the input iterable, you should *not* be using the multiple argument form. ---------- _______________________________________ 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