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


Groups > comp.lang.python > #78615

Re: How to show a dictionary sorted on a value within its data?

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 <gcb0gb-d2u.ln1@chris.zbmc.eu> (permalink)
References <crvsfb-drf.ln1@chris.zbmc.eu> <mailman.14512.1412159108.18130.python-list@python.org> <cj2tfb-80s.ln1@chris.zbmc.eu> <m0gnj8$6f2$1@ger.gmane.org> <mailman.14539.1412225868.18130.python-list@python.org> <h5jvfb-2cn.ln1@chris.zbmc.eu> <m0jm43$pee$1@reader1.panix.com>
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

Show key headers only | View raw


Grant Edwards <invalid@invalid.invalid> wrote:
> On 2014-10-02, cl@isbd.net <cl@isbd.net> wrote:
> > Travis Griggs <travisgriggs@gmail.com> 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
ยท

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


Thread

How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-01 10:58 +0100
  Re: How to show a dictionary sorted on a value within its data? Peter Otten <__peter__@web.de> - 2014-10-01 12:24 +0200
    Re: How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-01 11:45 +0100
      Re: How to show a dictionary sorted on a value within its data? Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-01 06:56 -0400
        Re: How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-01 13:16 +0100
      Re: How to show a dictionary sorted on a value within its data? Peter Otten <__peter__@web.de> - 2014-10-01 13:12 +0200
      Re: How to show a dictionary sorted on a value within its data? Travis Griggs <travisgriggs@gmail.com> - 2014-10-01 21:57 -0700
        Re: How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-02 10:40 +0100
          Re: How to show a dictionary sorted on a value within its data? Marko Rauhamaa <marko@pacujo.net> - 2014-10-02 14:17 +0300
            Re: How to show a dictionary sorted on a value within its data? Rustom Mody <rustompmody@gmail.com> - 2014-10-02 10:46 -0700
          Re: How to show a dictionary sorted on a value within its data? Grant Edwards <invalid@invalid.invalid> - 2014-10-02 14:05 +0000
            Re: How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-02 17:33 +0100
              Re: How to show a dictionary sorted on a value within its data? Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-02 13:15 -0600
              Re: How to show a dictionary sorted on a value within its data? Grant Edwards <invalid@invalid.invalid> - 2014-10-02 19:36 +0000
              Re: How to show a dictionary sorted on a value within its data? Dan Stromberg <drsalists@gmail.com> - 2014-10-02 13:06 -0700
                Re: How to show a dictionary sorted on a value within its data? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-03 09:16 +1000
                Re: How to show a dictionary sorted on a value within its data? Chris Angelico <rosuav@gmail.com> - 2014-10-03 12:44 +1000
                Re: How to show a dictionary sorted on a value within its data? Steven D'Aprano <steve@pearwood.info> - 2014-10-03 07:55 +0000
                Re: How to show a dictionary sorted on a value within its data? Chris Angelico <rosuav@gmail.com> - 2014-10-03 18:09 +1000
              Re: How to show a dictionary sorted on a value within its data? Chris Angelico <rosuav@gmail.com> - 2014-10-03 07:01 +1000
  Re: How to show a dictionary sorted on a value within its data? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-01 11:27 +0100
  Re: How to show a dictionary sorted on a value within its data? Joel Goldstick <joel.goldstick@gmail.com> - 2014-10-01 06:37 -0400
    Re: How to show a dictionary sorted on a value within its data? cl@isbd.net - 2014-10-01 13:19 +0100

csiph-web