Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: cl@isbd.net Newsgroups: comp.lang.python Subject: Re: How to show a dictionary sorted on a value within its data? Date: Thu, 2 Oct 2014 17:33:52 +0100 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net OErQ4IdjR2Si7XIyIQFsIgJsV8DV4EUH5t2TrfU9Cowyt4hew= X-Orig-Path: not-for-mail Cancel-Lock: sha1:sTTGCcuiiba6btt+RWLsPuWQXO0= User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (Linux/3.13.0-36-generic (x86_64)) Xref: csiph.com comp.lang.python:78615 Grant Edwards wrote: > On 2014-10-02, cl@isbd.net wrote: > > Travis Griggs wrote: > >> > >> > >> Sent from my iPhone > >> > >> > On Oct 1, 2014, at 04:12, Peter Otten <__peter__@web.de> wrote: > >> > > >> > `lambda` is just a fancy way to define a function inline > >> > >> Not sure "fancy" is the correct adjective; more like syntactic tartness > >> (a less sweet version of syntactic sugar). > >> > > It throws me because 'lambda' simply has no meaning whatsoever for me, > > i.e. it's just a greek letter. > > > > So from my point of view it's like seeing 'epsilon' stuck in the > > middle of some code. > > > > It's not as if I'm new to programming either, I've been writing > > software professionally since the early 1970s, now retired. > > The use of "lamba" as a keyword to define an anonymous function is > borrowed from Lisp which got it from Lambda calculus. > > http://en.wikipedia.org/wiki/Lambda_calculus > 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). -- Chris Green ยท