Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.05; 'subject:Python': 0.06; 'definitions': 0.07; 'variables': 0.07; 'parameter': 0.09; 'subject:language': 0.09; 'cc:addr:python- list': 0.11; 'ah,': 0.16; 'camp': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parameter.': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; 'tend': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; "doesn't": 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; '25,': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'programming,': 0.36; 'implement': 0.38; 'pm,': 0.38; 'functional': 0.39; 'how': 0.40; 'skip:* 10': 0.61; 'mar': 0.68; 'subject:this': 0.83; 'understand,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=RU6gPs6T9W2d/Of/hjc78H/Rs+Bp8Wd/2D/swfYZcUA=; b=MOhVn0fgKvtfAWyq3zZttBGUu+DVPJk06tH1SzFhg3lHq8Doubr0jiANOb5tFE4/um +Ybp+1zVCnf81UyCWELPAqujiEa9VPbaEzEHWzr5biUV1osRazxE6DkaED5nzrvOj7Mu m1jj9LhO/jFW+yO3ZSWcH3IpOU0q70QWut9EMHfnI8ulGig0aQTnUvw0461VWD1hL1Us fYx8S7Z/fRWmqXasFrx2kpQeGgXJO3pkwpF9tjbJ/4Rxs6FiwTfquSSBFMxlaOdAQs+I qMuRhrYTEc9TbffAYBTWQVtBlpMDgWC94ClXqZ4RFxbspSNWG/EPa0vt0Uwrq8t8yux9 Kvag== MIME-Version: 1.0 X-Received: by 10.66.118.71 with SMTP id kk7mr74403261pab.14.1395711693010; Mon, 24 Mar 2014 18:41:33 -0700 (PDT) In-Reply-To: References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <10101874-2995-4acd-9851-989603f052e3@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> <87ior3w740.fsf@elektro.pacujo.net> Date: Tue, 25 Mar 2014 12:41:32 +1100 Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395711696 news.xs4all.nl 2832 [2001:888:2000:d::a6]:59400 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68928 On Tue, Mar 25, 2014 at 12:31 PM, Terry Reedy wrote: > On 3/24/2014 8:28 PM, Chris Angelico wrote: > >> Pure functional programming, from what I understand, doesn't *have* >> variables other than function arguments. > > > function *parameters*, if in the 'variable = name' camp > > >> So the way to implement "x = 1" is to call a subfunction > > > with a parameter named 'x' > >> with an argument of 1 Ah, yes, parameter. I tend to use the terms interchangeably, but they do have formal definitions and distinctions. But otherwise, yes; that's how I was seeing that. ChrisA