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: 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: <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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Dec 12, 2013 at 7:34 PM, Robert Voigtl=C3=A4nder 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 slo= west 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