Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tim Chase Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Fri, 4 Mar 2016 20:49:27 -0600 Lines: 45 Message-ID: References: <8760x4bo5h.fsf@elektro.pacujo.net> <871t7sbkex.fsf@elektro.pacujo.net> <87vb53se36.fsf@elektro.pacujo.net> <56d8d33d$0$1585$c3e8da3$5496439d@news.astraweb.com> <56D8DF99.6070808@lucidity.plus.com> <56d905a7$0$1605$c3e8da3$5496439d@news.astraweb.com> <56DA1ADF.2090109@lucidity.plus.com> <5d18634b-3c0f-48aa-a6b3-56fc9ce79d26@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de zfsWkJe7kadlSaMC7QgqNAhxShivx6UUda686AKaAjhA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'diff': 0.05; 'incorrect': 0.09; 'python': 0.10; "'this": 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'hacked': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'useless': 0.16; 'wrote:': 0.16; 'byte': 0.18; 'skip:l 40': 0.23; 'header:In-Reply-To:1': 0.24; 'print': 0.30; 'similar': 0.33; 'file': 0.34; 'could': 0.35; 'clear': 0.35; 'quite': 0.35; 'something': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'two': 0.37; 'charset:us-ascii': 0.37; 'doing': 0.38; 'to:addr:python.org': 0.40; 'still': 0.40; 'email addr:gmail.com': 0.62; 'benefit': 0.66; 'results.': 0.67; 'received:23': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1457146346227:1599683062 X-MC-Ingress-Time: 1457146346226 In-Reply-To: <5d18634b-3c0f-48aa-a6b3-56fc9ce79d26@googlegroups.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104076 On 2016-03-04 17:17, sohcahtoa82@gmail.com wrote: > x \ > = \ > 5 > if \ > y \ > == \ > z: > print \ > 'this is terrible' > print \ > 'but still not incorrect > > It would be terrible, still but not incorrect. And has the sociopathic benefit that the diffs make it quite clear what changed. None of this looking-deep-into-lines-to-see-what-changed. x \ = \ 5 if \ y \ - != \ + == \ z: print \ 'this is terrible' print \ 'but still not incorrect Still terrible. But not quite as useless as a knee-jerk reaction might suggest. I actually hacked together a binary-diff something like this, emitting every hex-formatted byte of each file on its own line, then diffing the two results. I could see doing something similar to diff Python ASTs. -tkc