A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-October/104624.html below:

[Python-Dev] [Python-ideas] minmax() function returning (minimum, maximum) tuple of a sequence

[Python-Dev] [Python-ideas] minmax() function returning (minimum, maximum) tuple of a sequenceAntoine Pitrou solipsis at pitrou.net
Sun Oct 10 22:09:48 CEST 2010
On Sun, 10 Oct 2010 13:57:21 -0500
"Paul McGuire" <ptmcg at austin.rr.com> wrote:
> 
> Any comments? Interest? Should I write up a PEP? Go back to my pyparsing
> hole?

Generally, these things are discussed on python-ideas first.  I don't
think a PEP required for a single function, but you'll have to convince
people that it's useful ;)

Personnally, I'm not convinced that a maximum 25% improvement on a
rather uncommon use case (min() and max() on a sequence of objects
which take a long time to compare) is a compelling argument for a
builtin.  On the other hand, it would be a rather simple and intuitive
builtin, so why not?

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4