Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" 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: References: <548653EC.5080107@gmx.de> 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: Cancel-Lock: sha1:+BecYLTqCgpdqXGhNgivVa6crvU= X-NNTP-Posting-Host: eJwFwYEBACAEBMCV4vMYJ8n+I3RnoPD6pnHb2Og8Qjr9eQjOraxpWjkjgJcL2dClUzyG4AccExC3 Xref: csiph.com comp.lang.python:82195 Ben Finney wrote: > Christoph Becker 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