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


Groups > comp.lang.python > #82195

Re: Question on lambdas

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.python
Subject Re: Question on lambdas
Date Tue, 09 Dec 2014 13:43:10 +0100
Organization solani.org
Lines 24
Message-ID <m66qor$3g0$1@solani.org> (permalink)
References <m65d2m$3pe$1@ger.gmane.org> <mailman.16745.1418083098.18130.python-list@python.org> <548653EC.5080107@gmx.de> <mailman.16759.1418102596.18130.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1418128987 3584 eJwFwYERACEIA7CVvkJbfhwOdf8RTBiCxikqeXllLIAYc7VS+gwe2WxruKsQG/lHtOOUHunxD14= (9 Dec 2014 12:43:07 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 9 Dec 2014 12:43:07 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
X-User-ID eJwFwYEBwDAEBMCVKvxjHCT2H6F3UArHjaBhsVPvKKHLmAhE2kITh7efWLhXb66Ut30VN38UXhDz
In-Reply-To <mailman.16759.1418102596.18130.python-list@python.org>
Cancel-Lock sha1:+BecYLTqCgpdqXGhNgivVa6crvU=
X-NNTP-Posting-Host eJwFwYEBACAEBMCV4vMYJ8n+I3RnoPD6pnHb2Og8Qjr9eQjOraxpWjkjgJcL2dClUzyG4AccExC3
Xref csiph.com comp.lang.python:82195

Show key headers only | View raw


Ben Finney wrote:

> Christoph Becker <cmbecker69@gmx.de> writes:
> 
>> Ben Finney wrote:
>>
>>> It's best to remember that ‘lambda’ is syntactic sugar for creating
>>> a function; the things it creates are not special in any way, they
>>> are normal functions, not “lambdas”.
>>
>> Could you please elaborate why ‘lambda’ does not create “lambdas”. I'm
>> a Python beginner (not new to programming, though), and rather
>> confused about your statement.
> 
> We already have a term for what the ‘lambda’ keyword creates: a
> function.
>
> That is, ‘lambda’ creates a function object, without anything to
> distinguish it from a function created any other way.

Ah, now I understand.  It's "just" about proper naming.  Thanks. :)

-- 
Christoph M. Becker

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


Thread

Re: Question on lambdas Ben Finney <ben+python@benfinney.id.au> - 2014-12-09 10:58 +1100
  Re: Question on lambdas Christoph Becker <cmbecker69@gmx.de> - 2014-12-09 02:44 +0100
    Re: Question on lambdas Steven D'Aprano <steve@pearwood.info> - 2014-12-09 06:38 +0000
  Re: Question on lambdas Chris Angelico <rosuav@gmail.com> - 2014-12-09 12:53 +1100
  Re: Question on lambdas Terry Reedy <tjreedy@udel.edu> - 2014-12-08 21:09 -0500
  Re: Question on lambdas Ben Finney <ben+python@benfinney.id.au> - 2014-12-09 16:23 +1100
    Re: Question on lambdas "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-09 13:43 +0100
  Re: Question on lambdas Rustom Mody <rustompmody@gmail.com> - 2014-12-08 22:44 -0800

csiph-web