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 <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