Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.045 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'cpython': 0.05; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'ah,': 0.16; 'keyword.': 0.16; 'lambda': 0.16; 'subject:show': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'least': 0.26; '(for': 0.26; 'skip:" 20': 0.27; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'publicly': 0.31; 'says': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:data': 0.36; 'subject:?': 0.36; 'list': 0.37; 'being': 0.38; 'filter': 0.38; 'pm,': 0.38; 'does': 0.39; 'even': 0.60; 'ian': 0.60; "you're": 0.61; 'map': 0.64; 'to:addr:gmail.com': 0.65; 'obvious': 0.74; 'bare': 0.84 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:to :cc:content-type; bh=TePOLdDEQspGly5ZVsac/h6ht5LCeQ98kguK4LMeqSc=; b=Q8HqveHhBlKQdaXcoGig2pCmDTRxM8Jb0E+H3AA4eFwO8VAkMp12stZTYPUUVmj/2s X9Yjg9F4Y+X3BibUoBEXQhg+SuVEyVNGac0sO2kyRYeoiDJtf1+oGmioScuBafm0WILF Gbo0L32Nh5r74MPWCW8wYtPU0yadqK7QXh0R+wqD1g43ctMpiPQHYljCB1MAElcQp4lx DUbZifb/b+G+nSaPH8hnrH6ZoGa9OZMju1IEwv6JVSM7KeJTKOmkjupffwsMaDkzYdw1 hqCAjZ2QvRnmM7NhpqIjZYkGQktHoiSJUGsyRiJBFVRgcGnb5Hh7UXqy7Opmi2ZkzC29 QHUA== MIME-Version: 1.0 X-Received: by 10.152.88.43 with SMTP id bd11mr1143842lab.62.1412280409659; Thu, 02 Oct 2014 13:06:49 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Oct 2014 13:06:49 -0700 Subject: Re: How to show a dictionary sorted on a value within its data? From: Dan Stromberg To: Ian Kelly Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412280412 news.xs4all.nl 2880 [2001:888:2000:d::a6]:42653 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78626 On Thu, Oct 2, 2014 at 12:15 PM, Ian Kelly wrote: > On Thu, Oct 2, 2014 at 10:33 AM, wrote: >> Ah, so at least there is a reason for it, I'm far from being a >> mathematician though so it's not particularly obvious (for me anyway). > > You're not alone; a lot of people find the terminology not intuitive. > Even GvR has publicly lamented the choice of keyword. Was lambda almost removed from CPython 3.x? Anyway, pylint doesn't complain about a bare use of lambda, but it does complain about a map applied to a lambda or a filter applied to a lambda. Pylint says they could be replaced by a list comprehension, with the warning "deprecated-lambda".