Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Selik Newsgroups: comp.lang.python Subject: Re: Method Chaining Date: Fri, 17 Jun 2016 23:10:10 +0000 Lines: 28 Message-ID: References: <74831a84-7b05-4242-b4c0-4a90d147717b@googlegroups.com> <33f73a24-4dcf-429b-9264-a3f3098f1cc3@googlegroups.com> <5763c2a7$0$1602$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de XhS7NukaLb4dqnITxJcsWQ+c6c9WJ6OL9N2F4dTyoxDQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'modified': 0.05; 'correct.': 0.07; 'none.': 0.09; 'python': 0.10; '2016': 0.16; 'chained': 0.16; 'rationale': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'url:faq': 0.16; 'wrote:': 0.16; '>': 0.18; 'email addr:gmail.com>': 0.18; 'to:2**1': 0.21; 'lawrence': 0.22; 'sorry,': 0.22; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'opposed': 0.27; 'looks': 0.29; "we're": 0.30; 'included': 0.32; 'url:python': 0.33; 'michael': 0.33; 'received:google.com': 0.35; 'returning': 0.35; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'link.': 0.37; 'version': 0.38; 'received:209': 0.38; 'received:209.85.220': 0.38; 'to:addr:python.org': 0.40; 'saturday,': 0.63; 'talking': 0.67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=LgnW87wG7g2EmTaEimz83m5/Xl6ayP4Rw5D9/Fe8Qj4=; b=XCwVlUVkvr/4/kkowwmv+IftXu6w4YQ95AxkH6bh4/xqrJlw8306s9S6IO01ApiKwV yiz0H9s5rXJGzDsrjF9XF6VlUBJG8q7BuZnejJZnOFYPEmONFFRxi/ZwbN4ieCFgv7oC F00w70LGSbG9sK+hWg4i/OZJQml/zSBhbKvnvBF80YA8Jl9yNMHejfYfnes+t+/MzoQK 68HHLkd/waE+klEceh35oFhh5UVXvINnt/Yv0pXONhNh6Nw0fM7dMrPXLMCSFr+tBPV9 zqIpCgTsheZoato8pxGicukB8Ub1A74JHDQa58E+qGwjQQPNPn/pnC+kW/SgnTUTnbgi a3JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=LgnW87wG7g2EmTaEimz83m5/Xl6ayP4Rw5D9/Fe8Qj4=; b=kNHGjjgS0RvB5exCK5Wo3ojsNp+1Z5NMz7PnF1txhtSkWLZb1UWYXa4rECKQC/pt7p 7imzd1Zp5PXUzCKoMwCwV6ovpotP9jV8ZgHUf9XmSvkAtua8tFbnysfexqTE3SIY5Nqp H1alyT6MhS3tnhCSDwpb0i6Jk1mX4eJg2lfUgocAImqTZoPdAd4+LVHD5nSVi2wpCfpL Ko+fA0ElFU/9jL1URMrDwXCq4lwB5pBwSH0KPbnQJ+2H6Jema3pGa3Cl4tah1Y/p5HRy nbQM5GHMoDoigoIkE9pVWSCxq3BjhrI5ywfaucEeeDxi73gxOk9mkVamj5Y3pbWJLuyQ K68A== X-Gm-Message-State: ALyK8tKb8aMGHVSf/9eHobsvmWGNvurEgQFHdnmHdYVc+k+4tOKdruTiNMEmpQvu3irFk1uFyQLvIOttXhmSyw== X-Received: by 10.237.49.66 with SMTP id 60mr5583522qtg.103.1466205019661; Fri, 17 Jun 2016 16:10:19 -0700 (PDT) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <74831a84-7b05-4242-b4c0-4a90d147717b@googlegroups.com> <33f73a24-4dcf-429b-9264-a3f3098f1cc3@googlegroups.com> <5763c2a7$0$1602$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:110065 On Fri, Jun 17, 2016, 6:44 PM Michael Selik wrote= : > > > On Fri, Jun 17, 2016, 6:42 PM Lawrence D=E2=80=99Oliveiro > wrote: > >> On Saturday, June 18, 2016 at 1:35:06 AM UTC+12, Michael Selik wrote: >> >> > The chained version looks like each method is returning a modified >> > copy. >> >> As opposed to a modified original? >> > > Correct. Read the rationale for list.sort returning None. It's in the > Python design FAQ. > Sorry, I should have included the link. https://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-= sorted-list Even if we're talking about a non-mutation side-effect, I think the same rationale applies.