Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'that?': 0.05; 'subject:PEP': 0.07; 'definition,': 0.09; 'cc:addr:python-list': 0.11; 'anyway': 0.14; '.py': 0.16; '5:00': 0.16; 'ast': 0.16; 'earlier.': 0.16; 'fly.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'objection': 0.16; 'prevent': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'code.': 0.18; 'not,': 0.20; 'cc:addr:python.org': 0.22; 'propose': 0.24; 'specify': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'subject: : ': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'code': 0.31; 'comments': 0.31; 'comments,': 0.31; 'file': 0.32; 'text': 0.33; 'fri,': 0.33; 'could': 0.34; 'editor': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'loss': 0.38; 'pm,': 0.38; 'according': 0.40; 'how': 0.40; 'even': 0.60; 'information,': 0.61; 'information': 0.63; 'more': 0.64; 'biggest': 0.67; 'frequently': 0.68; 'actually,': 0.84; 'carries': 0.91; 'do:': 0.91; 'to:none': 0.92; 'acknowledge': 0.93 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:cc :content-type; bh=6TFL7p9hxjcJFVTHyz99gxJG3eFocrVo5VniNlOfOVg=; b=czCLTmJPmOFPxX4+e1EFFbpKW6uIg5UUsRvROQKhSKbV3r6glS5hwyNsocV4OGuHKz J+v0Z8romFOjjCs2i3TdCh2aErvK0YwafoEe4Rb6+x8bA5WW8e7Ia+Efi3+a40bJmo5/ ITHS0Yn6sq6BFSSKnzCGk3WZ29FovSAqGalO01a/LKUcF/pofRXzBvITekLnIKEM5bJl lMm69sOJ093KrmesM337CxhhSYFxCmYmZAhenPOOkN7cBj5AsUytv0Nj97QOVYnwZ9wl g8C4MVDsSrZj8ru1XVvE2FRIKgOrNBSyb3ozO/zCT9j64ZLlJNTCANFDcHx3xIoGYvIN Txbw== MIME-Version: 1.0 X-Received: by 10.180.8.136 with SMTP id r8mr12328473wia.60.1400225968381; Fri, 16 May 2014 00:39:28 -0700 (PDT) In-Reply-To: <87k39m9pib.fsf@elektro.pacujo.net> References: <5373f400$0$24922$e4fe514c@dreader36.news.xs4all.nl> <600f69c8-541f-4fae-a3db-4da33b776046@googlegroups.com> <87a9ajb36d.fsf@elektro.pacujo.net> <78ac407a-c429-4a7a-93c9-5d83e0f09cbb@googlegroups.com> <8761l7b05y.fsf@elektro.pacujo.net> <5375af57$0$29977$c3e8da3$5496439d@news.astraweb.com> <87k39m9pib.fsf@elektro.pacujo.net> Date: Fri, 16 May 2014 17:39:28 +1000 Subject: Re: PEP 8 : Maximum line Length : From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 1400225975 news.xs4all.nl 2854 [2001:888:2000:d::a6]:37443 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71648 On Fri, May 16, 2014 at 5:00 PM, Marko Rauhamaa wrote: > Well, actually, any .py file *does* specify a unique AST. Nothing would > prevent the text editor from presenting it according to your > preferences. They all do that to a degree anyway (colors, fonts), but > they could take even more liberties (which some IDE's do: hiding/showing > comments and function definitions). > > There are tools that reindent and refactor code automatically. The text > editor could do that on the fly. You still haven't answered my biggest objection from earlier. Source code contains more information than the AST does; even if you make a frAnkenSTein's monster that includes comments, there's still the point that whitespace carries information, and that information is frequently communicative of the programmer's intent. Any automated reformatter destroys that information, and that is, by definition, a net loss to the code. How do you propose to fix that? Or if not, will you at least acknowledge that the AST cannot perfectly transmit what the source code says? ChrisA