[issue18111] Add a default argument to min & max
Doug Hellmann
report at bugs.python.org
Mon Jun 3 17:27:27 CEST 2013
Doug Hellmann added the comment:
+1 on adding this
I found today via @dabeaz's cookbook that iter() has a sentinel-detection use case. Having one in min/max seems *far* more obviously useful. It's also consistent with quite a few methods on builtin types where we provide a way to deal with unknown data safely by having a default instead of catching exceptions directly.
----------
nosy: +doughellmann
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18111>
_______________________________________
More information about the Python-bugs-list
mailing list