Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.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.066 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'context.': 0.09; 'interfaces': 0.12; 'fluent': 0.16; 'methods,': 0.16; '\xc2\xa0i': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; 'cheers,': 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'mix': 0.23; 'pm,': 0.24; 'aug': 0.24; 'url:wiki': 0.25; "i'm": 0.27; 'tend': 0.28; 'mind.': 0.29; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'sun,': 0.30; 'chris': 0.32; 'it.': 0.33; 'pretty': 0.35; 'could': 0.38; 'steven': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'url:en': 0.39; 'case': 0.39; 'law': 0.63; 'chain': 0.66; 'subject:line': 0.73; 'sender:addr:chris': 0.84; 'violating': 0.84; 'received:209.85.218.46': 0.91; 'received:mail- yi0-f46.google.com': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pR6LOXgG9EMZV/lJzgboAzT7N4XPsMZ8qsdJq/SGT10=; b=AurFzZv1merIuXywLWHkbWdSuZxJRCmwv9nJdb3U1AVqzHx1bcJrLmSymW1+NL597h whUHa2lT+Z8GJ7lkxy+gebtDxSHUInz3u4qFetHOO8l74tp4eEgHAaz0SQgviYI3bGax DpCD5vy7LidOt4q57j8HaDyffxKUejKtRHQyY= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <4e487c66$0$29995$c3e8da3$5496439d@news.astraweb.com> References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <87fwl9hr4r.fsf@benfinney.id.au> <4e43cb2a$0$29986$c3e8da3$5496439d@news.astraweb.com> <74c2421f-28a0-4a8d-bf74-4eebacfb74f1@d7g2000vbv.googlegroups.com> <92b8f192-d7fc-4c60-87ad-71b12652f3a2@k8g2000yqk.googlegroups.com> <4e45ab9d$0$30002$c3e8da3$5496439d@news.astraweb.com> <4e4774ed$0$29982$c3e8da3$5496439d@news.astraweb.com> <4e47db26$0$30002$c3e8da3$5496439d@news.astraweb.com> <4e487c66$0$29995$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 14 Aug 2011 19:10:42 -0700 X-Google-Sender-Auth: s8TsXAxOdaNtNeaZWcok2OjYd60 Subject: Re: allow line break at operators From: Chris Rebert To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1313374250 news.xs4all.nl 23836 [2001:888:2000:d::a6]:60294 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11435 On Sun, Aug 14, 2011 at 6:54 PM, Steven D'Aprano wrote: > Seebs wrote: >> Interesting! =C2=A0I tend to really like the ability to chain methods, >> depending >> on context. =C2=A0I find the side-effect/expression mix pretty normal, s= o I'm >> used to it. > > As a rule, chaining method calls risks violating the Law of Demeter. Just > sayin'. Not in the specific case of fluent interfaces[1] though, which could have been what Seebach had in mind. Whether fluent interfaces are a good idea... Cheers, Chris -- [1] http://en.wikipedia.org/wiki/Fluent_interface