Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python': 0.08; 'braces': 0.09; 'correct.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'myself,': 0.09; 'received:gator410.hostgator.com': 0.09; 'seriously.': 0.09; 'shame': 0.09; 'underlying': 0.09; '~ethan~': 0.09; 'encouraged': 0.12; '*always*': 0.16; '*never*': 0.16; 'block,': 0.16; 'decisions,': 0.16; 'indent': 0.16; 'newcomers': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'reformat': 0.16; 'tradeoffs': 0.16; 'workflows': 0.16; 'cc:addr:python-list': 0.16; 'have,': 0.16; 'wrote:': 0.16; '(which': 0.19; 'cc:no real name:2**0': 0.20; 'seems': 0.20; 'suggest': 0.20; 'figure': 0.21; 'maybe': 0.21; 'so.': 0.22; "doesn't": 0.22; 'stuff': 0.22; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'obviously': 0.23; 'incorrect': 0.23; 'indentation': 0.23; 'pascal': 0.23; 'talked': 0.23; 'noticed': 0.24; 'changed': 0.24; 'there.': 0.24; "python's": 0.24; 'code': 0.25; 'code.': 0.26; 'helpful': 0.26; "i'm": 0.27; 'language.': 0.28; 'problem': 0.28; 'server': 0.29; 'fixed': 0.29; 'looks': 0.29; 'fix': 0.29; 'cc:addr:python.org': 0.30; 'match': 0.30; 'not.': 0.30; 'for,': 0.30; 'whitespace': 0.30; "who'd": 0.30; 'cases': 0.32; 'actual': 0.32; 'usually': 0.32; 'source': 0.33; "can't": 0.33; 'there': 0.33; 'that,': 0.33; "i've": 0.34; 'difference': 0.34; 'community': 0.34; 'header:User- Agent:1': 0.34; "we're": 0.34; 'supposed': 0.35; 'unless': 0.36; 'couple': 0.36; 'problems': 0.36; 'another': 0.37; 'are.': 0.37; 'machine': 0.37; 'but': 0.37; 'talk': 0.37; 'two': 0.37; 'could': 0.38; 'think': 0.38; 'some': 0.38; 'move': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'correctly': 0.39; 'manually': 0.39; 'difficult': 0.39; "i'd": 0.40; "it's": 0.40; 'where': 0.40; 'more': 0.60; 'your': 0.61; 'minutes': 0.64; 'received:websitewelcome.com': 0.64; 'cause': 0.67; 'received:184': 0.67; 'care': 0.71; 'match,': 0.73; 'subject:line': 0.73; '100%': 0.82; 'bitten': 0.84; 'heck,': 0.84; 'milliseconds': 0.84; 'often,': 0.84; 'regard.': 0.84; 'semantics,': 0.84 Date: Thu, 11 Aug 2011 15:43:39 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Seebs Subject: Re: allow line break at operators References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> <1312982377.95657.YahooMailNeo@web121508.mail.ne1.yahoo.com> <87fwl9hr4r.fsf@benfinney.id.au> <4e43cb2a$0$29986$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:3042 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 3 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313101690 news.xs4all.nl 23836 [2001:888:2000:d::a6]:54154 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11234 Seebs wrote: >> We're fully aware of the tradeoffs of significant indentation. > > You are. A couple of other people I've talked to are. Many others > are not. The times that whitespace indentation has bitten me, it was still not difficult to fix -- I just had to look and see which line(s) should/should not be where they were. >> Because people simply don't like it when their code's indentation doesn't >> match the actual semantics, people usually manually ensure that the two >> match, braces or no braces. Editors still have commands to indent and >> outdent blocks of code. There is no difference between (say) C or Pascal >> and Python in that regard. > > Yes, there very much is. > > You can't outdent "a block" in Python unless it is already correctly > indented. I fix the block, then move it as I need to. > The underlying thing I've noticed is: > > Braces have problems more often, but the problems are *always* 100% > machine-fixable and therefore trivial. It takes milliseconds to get > a program fixed so it looks like what it means. Not so. If the braces do not match /intent/ (which is the problem I care most about) then it cannot be fixed by machine. > Indentation has problems less often, but the problems are *never* > machine-fixable. It takes minutes or hours to figure out what was > supposed to be there. I can see where a messed-up mail server could cause hours of grief. Not having experienced that, but only cases where I, myself, accidently changed indentation when I should have, it's not been a big deal to fix; I'm willing to live with not having the machine reformat my source code from incorrect to correct. ... > Well, seriously. If I could, I would. If it were up to me, I'd talk to the > people who'd picked Python for some stuff I have to work for, point out the > hostility of the Python community to newcomers whose workflows don't happen > to have been preemptively built entirely around Python's design decisions, > and suggest that maybe we use another language. Heck, since I've been > encouraged so much to do so, I think I will. Your choice, obviously -- seems a shame to me, though, to give up on Python because of one or two ouchy areas on c.l.py. By and large it's a very helpful and courteous community. ~Ethan~