Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.112 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.02; 'transform': 0.07; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header:User-Agent:1': 0.23; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; "doesn't": 0.30; 'dec': 0.30; 'robert': 0.30; 'subject:list': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'tuples': 0.31; 'subject:from': 0.34; 'hi,': 0.36; 'list': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'afraid': 0.65; 'header:Reply-To:1': 0.67; 'debate': 0.68; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:python.org': 0.84; 'not:': 0.91; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=C6LQl2/+ c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=baqLi5_GPZIA:10 a=S1S25gD0PE4A:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=COi0ljMU_PQA:10 a=Ye9q-bpsAAAA:8 a=zXoQyzdPu9fY2rffi10A:9 a=QEXdDO2ut3YA:10 X-AUTH: mrabarnett:2500 Date: Thu, 12 Dec 2013 12:36:51 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: min max from tuples in list References: <52a9a1a0$0$29992$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <52a9a1a0$0$29992$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386851815 news.xs4all.nl 2830 [2001:888:2000:d::a6]:44284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61702 On 12/12/2013 11:44, Steven D'Aprano wrote: > On Wed, 11 Dec 2013 23:25:53 -0800, Robert Voigtländer wrote: > >> Hi, >> >> I have a list like this: >> >> a = [(52, 193), (52, 193), (52, 192), ... >> >> >> I need to find a -performant- way to transform this into a list with >> tuples (a[0],[a[0][1]min],[a[0][1]max]). > > I'm afraid I don't know what you mean by "performant". It doesn't appear > to be an English word, so far as I can tell. Do you mean efficient? > [snip] There's some debate over whether it's English or not: http://english.stackexchange.com/questions/38945/what-is-wrong-with-the-word-performant