Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'terry': 0.07; 'changed;': 0.09; 'deliberately': 0.09; 'statement.': 0.09; 'subject:Function': 0.09; 'wrote:': 0.15; 'reedy': 0.16; 'subject:function': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; '>>>': 0.16; 'def': 0.16; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'subject: -- ': 0.25; "i'm": 0.27; 'cc:addr:python.org': 0.30; 'colon': 0.30; 'subject:?': 0.31; 'changes': 0.31; "skip:' 10": 0.32; 'header:User-Agent:1': 0.34; 'couple': 0.34; 'agree': 0.35; 'statement,': 0.35; 'addresses': 0.36; 'cc:2**1': 0.37; 'but': 0.37; 'received:192': 0.38; 'subject:: ': 0.38; 'two': 0.38; 'received:192.168.1': 0.39; 'got': 0.39; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'factory': 0.73; '02:59': 0.84; 'subject:over': 0.84; 'typos': 0.84 Date: Tue, 19 Jul 2011 06:07:42 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: Thomas 'PointedEars' Lahn Subject: Re: Re: Partial Function Application -- Advantages over normal function? References: <201107181543.42229.kurianmthayil@gmail.com> <1405042.q1RDiLHYyK@PointedEars.de> In-Reply-To: <1405042.q1RDiLHYyK@PointedEars.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:+8Qla6xdIN/o1eQ3mpihz7VLiSH17eDEQNZo3+Zc+3r sDEFuKugUQs1pNF4zVazBF/UANPojqFBKvyMOVmBgbWa3Ur22A Osm8d4mhaoDwlfEd0V4xzE+0bAY4YoxAryQChYTtqy/LQPhl+P Ng6jN0s12qKj/bpcWXTZ1Nq1OAg+mbgplzeDs9JL1i2pP/C8Qv jt7ZW+SSVVS88y3wLrJTA== Cc: python-list@python.org, Thomas 'PointedEars' Lahn X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: davea@ieee.org 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311070085 news.xs4all.nl 23894 [2001:888:2000:d::a6]:56966 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9870 On 01/-10/-28163 02:59 PM, Thomas 'PointedEars' Lahn wrote: > Dave Angel wrote: > >> On 01/-10/-28163 02:59 PM, Terry Reedy wrote: >>> def makeadder(y) >>> def _add(x): return x+y >>> add2 = makeadder(2) >> A couple of typos in that code: >> >> >> def makeaddr(y): >> def _add(x): return x+y >> return _add > I agree about the `return' statement, but not about the factory name; this > has nothing to do with addresses (addr). > The two changes that I made deliberately were adding the colon and adding the return statement. I'm not sure how the name got changed; that was accidental. DaveA