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/2004-January/041990.html below:

[Python-Dev] Accumulation module

[Python-Dev] Accumulation module [Python-Dev] Accumulation moduleBernhard Herzog bh at intevation.de
Tue Jan 13 15:06:54 EST 2004
"Raymond Hettinger" <raymond.hettinger at verizon.net> writes:

> nlargest(iterable, n=1)
> nsmallest(iterable, n=1)
[...]
>  Note, heapq is used for both (I use
> operator.neg to swap between largest and smallest).

Does that mean nlargest/nsmallest only work for numbers?  I think it
might be useful for e.g. strings too.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/

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