Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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.085 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'behavior.': 0.07; 'subject:method': 0.09; 'am,': 0.12; 'bieber': 0.16; 'declaimed': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gmt,': 0.16; 'naming': 0.16; 'rag': 0.16; 'received:209.85.161.174': 0.16; 'received:mail- gx0-f174.google.com': 0.16; 'subject:break': 0.16; 'wrote:': 0.18; "they've": 0.18; 'later': 0.19; 'result.': 0.21; 'header:In-Reply- To:1': 0.22; 'expect': 0.25; '(in': 0.26; '"the': 0.26; 'says': 0.27; 'project,': 0.28; 'value.': 0.28; 'message- id:@mail.gmail.com': 0.29; 'onto': 0.29; 'physics,': 0.30; 'time;': 0.30; 'subject:?': 0.31; 'actually': 0.31; 'on,': 0.31; 'break': 0.32; 'tue,': 0.32; 'rules': 0.34; 'test': 0.34; 'easiest': 0.34; 'lee': 0.34; 'rule': 0.34; 'steven': 0.34; 'done': 0.34; 'received:209.85.161': 0.34; 'driven': 0.34; 'to:addr:python-list': 0.35; 'subject:How': 0.35; "he's": 0.37; 'but': 0.37; 'received:google.com': 0.37; 'either': 0.37; 'received:209.85': 0.38; 'some': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.40; 'helps': 0.63; 'life': 0.63; 'demand': 0.66; 'car': 0.67; 'subject:name': 0.67; 'air': 0.70; 'safe': 0.70; 'as:': 0.70; 'dennis': 0.73; 'subject:one': 0.77; 'air,': 0.84; 'drops': 0.84; 'oil,': 0.84; 'wiped': 0.84; 'soviet': 0.93; 'subject:long': 0.93; 'oil': 0.96 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:to :content-type:content-transfer-encoding; bh=ljTKM/Rz9DdMSWJQOkIe3FmBNgWdFG87l7xNLtVT7iI=; b=McDMd1y3/noq7lw6G4Wy219FvTE3cBsgqEFcS1nAelH7M2NW8NIcALB3NjLwiLrEd1 wPWkiu72RhDe8t3335B95r4bqMqo0r3P3ugNTP6QZEZc9vIsBd3hN576M9IIiAqgnJa3 kLBPQq4WcbqNJSu8KbxXmcaocctWUmprEvwW/Lh2dmrzPIuffVzDaeD8NL5/qBbvQMt1 bjoBTWLoeecM+X6xLqTWV7vpcE3OkufXbFeLsMEpjQYatBvTFOmvMzjOOqv9eIDXWMKz F6pHYCbv/PAxJFvQj9/EO7QLUVu+yXd51nVl/mvP33lkumdlQNtjZzy1Db2yY5h1j+HN 7Vmg== MIME-Version: 1.0 In-Reply-To: References: <4f5d4390$0$29891$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 13 Mar 2012 08:59:14 +1100 Subject: Re: How to break long method name into more than one line? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331589557 news.xs4all.nl 6947 [2001:888:2000:d::a6]:37049 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21549 On Tue, Mar 13, 2012 at 3:24 AM, Dennis Lee Bieber wrote: > On 12 Mar 2012 00:30:08 GMT, Steven D'Aprano > declaimed the following in > gmane.comp.python.general: >> I expect that naming rule was invented by either people who have heard o= f >> test driven development, but never actually done it, or by people so >> anally-retentive that if they make seven short car trips over an hour, >> they check the tyre pressure, oil and water seven times because "the >> manual says to check before *every* trip". >> > =A0 =A0 =A0 =A0By which time they find they have to add air, oil, and wat= er as: the > pressure gauge usage lets out some air each time; they've wiped a few > drops of oil onto a rag each time; and the radiator was still > hot&pressurized such that they got an "overfull" result. In defense of such rules: There's a period in every new programmer's life when it helps to learn a whole lot of principles; and if he's working on some collaborative project, rules are the easiest way to demand such behavior. Later on, you learn how and when it's safe to break the rules (and/or how to deal with rule conflicts), but the rules still have value. Just never treat them as laws of physics (in Soviet Physics, rules break you!). ChrisA