[issue18111] Add a default argument to min & max
Nick Coghlan
report at bugs.python.org
Mon Jun 3 14:51:44 CEST 2013
Nick Coghlan added the comment:
+1 for adding this. It's simple to implement, simple to explain and the alternatives for dealing with the empty iterable case (or even the fact it may need to be handled at all) are definitely not obvious.
The relationship to next() is straightforward: the supplied value is effectively used as the default value for the first next call when iterating and then ignored thereafter.
----------
nosy: +ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18111>
_______________________________________
More information about the Python-bugs-list
mailing list