Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'syntax': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'creates': 0.14; '(represented': 0.16; 'expression.': 0.16; 'finney': 0.16; 'object;': 0.16; 'objects.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'module': 0.19; 'header:User-Agent:1': 0.23; 'header:X-Complaints- To:1': 0.27; 'function': 0.29; 'chris': 0.29; "doesn't": 0.30; 'errors': 0.30; 'statement': 0.30; 'subject:list': 0.30; 'code': 0.31; 'writes:': 0.31; 'class': 0.32; 'trouble': 0.34; 'created': 0.35; 'but': 0.35; 'object,': 0.36; 'received:com.au': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'is.': 0.60; 'between': 0.67; 'smith': 0.68; '8bit%:21': 0.69; 'data;': 0.84; 'received:125': 0.84; 'religion': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Explanation of list reference Date: Mon, 17 Feb 2014 14:52:38 +1100 References: <13208de8-0f85-4e60-b059-dc087c8fda41@googlegroups.com> <52fefccc$0$29973$c3e8da3$5496439d@news.astraweb.com> <52ff0dc5$0$29973$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: vmx15867.hosting24.com.au X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:B61d8ewqHGdytSH+eSeeQTmGPgc= 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392609174 news.xs4all.nl 2839 [2001:888:2000:d::a6]:50525 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66582 Roy Smith writes: > Chris Angelico wrote: > > Part of the trouble is that some code is (represented by) objects. A > > function is an object, ergo it's data; a module is an object (though > > that's different); a class is an object; but no other block of code > > is. > > Lambda? The ‘lambda’ syntax creates a function. It doesn't create “a lambda”; there's no distinction between functions that were created with a ‘def’ statement versus a ‘lambda’ expression. -- \ “Generally speaking, the errors in religion are dangerous; | `\ those in philosophy only ridiculous.” —David Hume, _A Treatise | _o__) of Human Nature_, 1739 | Ben Finney