Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.023 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:error': 0.03; 'none,': 0.07; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lambda': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; '25,': 0.31; 'something': 0.35; 'usual': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'pm,': 0.38; "you're": 0.61; '(ie': 0.84; 'subject:Lists': 0.91; '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=/4PdeHimMeQmiv6V1pHXjaiWLepVygzAfG+AHGvnyqE=; b=g8lYyaF17YCdlV5v9EAY6f4pEXSaFEx6jkQVOe4boqUa5Mfceh1McDCEZuTkmnw59H foOktym5wM8fCD9zuUufT5Y9BVXHYLtvpPaKxcMg9czYllS9HsQ2o2B69WQiGy2n8XBm PvH4WN7jG3NM2hMpD9/HqVWUNgNK6QNtREShM/fsQa/15dH6bJBqPctcPe/g1waHgymy 6iyZ3hcuRRcIBLnrxrtBy/FwZ1r3S50/jUlhI1K9w1x1YMsSHnOAI6rGhIxevMfAgak2 oC/kMrf8Zx84Cbmo5ZusJG65IsP9ApqqSgddrIUzxtQsLeFeQi6MbHMRl+gnJrb99mMR YXgw== MIME-Version: 1.0 X-Received: by 10.42.147.135 with SMTP id n7mr7200095icv.25.1414217028546; Fri, 24 Oct 2014 23:03:48 -0700 (PDT) In-Reply-To: References: <185ea3d5-71d3-4009-8afe-4f0c2b6bbf30@googlegroups.com> <25c6a468-e596-4a31-856b-bb5fe22c8894@googlegroups.com> <9dd6db37-5568-405e-8af7-3a28195eec4d@googlegroups.com> Date: Sat, 25 Oct 2014 17:03:48 +1100 Subject: Re: I am out of trial and error again Lists 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414217031 news.xs4all.nl 2946 [2001:888:2000:d::a6]:40273 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79659 On Sat, Oct 25, 2014 at 4:55 PM, Rustom Mody wrote: > So give me a valid (ie useful) use where instead of the usual > l=[1,2,3] > l.append(4) > > we have > > foo(l.append(4)) Given that l.append(4) will always return None, there's not a lot of point passing that return value to something, unless you're doing this inside a lambda or something dumb like that. It won't be Pythonic. Your point? ChrisA