[New-bugs-announce] [issue18111] Add a default argument to min & max

Julian Berman report at bugs.python.org
Sat Jun 1 01:21:06 CEST 2013


New submission from Julian Berman:

This has come up a number of times I'm aware, but no one has ever written a patch for it as far as a quick look uncovered.

So here's one (written by Thomas Wouters but with permission to submit). Submitting without tests and docs, but those are incoming when I get a moment.

The justification here is mostly related to being able to call min/max on an iterable of unknown length when there's a sensible default (which is usually going to be None, but that's not the default for backwards compat obviously).

----------
components: Interpreter Core
messages: 190426
nosy: Julian, twouters
priority: normal
severity: normal
status: open
title: Add a default argument to min & max
type: enhancement
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18111>
_______________________________________


More information about the New-bugs-announce mailing list