Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61686

Re: min max from tuples in list

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.047
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'method.': 0.07; 'reason,': 0.07; 'responding': 0.07; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sorting': 0.16; 'wow,': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'meant': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'post': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'list:': 0.30; 'robert': 0.30; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'easier': 0.31; 'usually': 0.31; 'about.': 0.31; 'context.': 0.31; 'probably': 0.32; 'quite': 0.32; 'text': 0.33; 'url:python': 0.33; 'subject:from': 0.34; 'knows': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'url:listinfo': 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'pm,': 0.38; '12,': 0.39; 'quote': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'skip:u 10': 0.60; 'read': 0.60; "you're": 0.61; 'talking': 0.65; 'life': 0.66; 'answer.': 0.68; 'nobody': 0.68; 'to,': 0.72; 'phpbb': 0.84; 'to:none': 0.92; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=YBlFEtt3SflhlYPvjFAAl9zlqBi+utkVRZgczoCUeIg=; b=bhJotwtY/DEN1J6zCgeIwWPMOzRfuXYiXTkQJGw8WLwo4wpDuib4LXvx4JdHQJHTKj dKbFJZm/n7iq9/yZ2zuZKqiT/Aon9oYGAPcXsyQKHngJYztavL+QBij7lxWkBDHT42pm +GFct2DOUtZ0RldO+/L902LDFEjNU8HnJRiWaRLt0M1VfzVrnozVkSe0OC3DbuoVJFDu 6ihy/AssgtZ+GfzkIeBD1xG+0Th7q2C6FirHeSs/oKNUa3bszirXffFNiMN/7v/nu0/K BNNhZcvWEuRnnOewjzFCYvRd92XuviIlxKCV39VzdJH9A5o7dgKPFAvpBpeBagraAtaJ uG4g==
MIME-Version 1.0
X-Received by 10.68.248.33 with SMTP id yj1mr9698558pbc.45.1386837781137; Thu, 12 Dec 2013 00:43:01 -0800 (PST)
In-Reply-To <5aadb848-80e9-460a-b4bb-a8406c46730d@googlegroups.com>
References <f78a11dc-efdd-4108-8d1f-59386f020fd0@googlegroups.com> <5aadb848-80e9-460a-b4bb-a8406c46730d@googlegroups.com>
Date Thu, 12 Dec 2013 19:43:01 +1100
Subject Re: min max from tuples in list
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3976.1386837789.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386837789 news.xs4all.nl 2961 [2001:888:2000:d::a6]:33136
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61686

Show key headers only | View raw


On Thu, Dec 12, 2013 at 7:34 PM, Robert Voigtländer
<r.voigtlaender@gmail.com> wrote:
> Wow, thanks for the educating answer. I'll work through all the varaints.
> And yes, I meant keep it unsorted.
>
> As I read it, sorting may be required then if I don't want to use the slowest variant. I'll test them all.

Sorting would be slower than using the dictionary method. Much slower.
If you don't need to sort for any other reason, don't sort!

By the way, it's usually courteous to quote at least some of the text
you're responding to, to give context. Otherwise nobody knows what
you're talking about. This isn't a PHPBB forum; each post actually is
quite separate. You may find that Google Groups makes your life
unnecessarily difficult in this, so it's probably easier to use the
mailing list:

https://mail.python.org/mailman/listinfo/python-list

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

min max from tuples in list Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-12-11 23:25 -0800
  Re: min max from tuples in list Chris Angelico <rosuav@gmail.com> - 2013-12-12 19:18 +1100
  Re: min max from tuples in list Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-12-12 00:34 -0800
    Re: min max from tuples in list Chris Angelico <rosuav@gmail.com> - 2013-12-12 19:43 +1100
  Re: min max from tuples in list Peter Otten <__peter__@web.de> - 2013-12-12 09:35 +0100
  Re: min max from tuples in list Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-12-12 10:52 +0200
  Re: min max from tuples in list Peter Otten <__peter__@web.de> - 2013-12-12 10:03 +0100
  Re: min max from tuples in list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-12 11:44 +0000
    Re: min max from tuples in list Tim Chase <python.list@tim.thechases.com> - 2013-12-12 06:04 -0600
    Re: min max from tuples in list MRAB <python@mrabarnett.plus.com> - 2013-12-12 12:36 +0000
      Re: min max from tuples in list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-12 23:25 +0000
    Re: min max from tuples in list Peter Otten <__peter__@web.de> - 2013-12-12 13:54 +0100
      Re: min max from tuples in list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-13 02:36 +0000
    Re: min max from tuples in list Roy Smith <roy@panix.com> - 2013-12-12 10:02 -0500
      Re: min max from tuples in list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-12 15:13 +0000
        Re: min max from tuples in list Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-12-12 22:28 -0800
          Re: min max from tuples in list rusi <rustompmody@gmail.com> - 2013-12-13 10:06 -0800
            Re: min max from tuples in list Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-13 19:30 -0500
              Re: min max from tuples in list Tim Roberts <timr@probo.com> - 2013-12-14 19:41 -0800
                Re: min max from tuples in list Chris Angelico <rosuav@gmail.com> - 2013-12-16 23:08 +1100
                Re: min max from tuples in list rusi <rustompmody@gmail.com> - 2013-12-16 07:49 -0800
                Re: min max from tuples in list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-16 10:59 -0500
                Re: min max from tuples in list Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-17 11:49 +1300
  Re: min max from tuples in list Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-13 01:33 +0000

csiph-web