Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Sun, 17 Apr 2016 13:49:17 +1000 Lines: 20 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <8ff10001-1c49-4490-b873-018507243ea3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de S89GA5Wge7fTV+QQir4H4wViSrAojAW5+lM106sghFPA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:PEP': 0.07; 'thats': 0.07; 'width': 0.07; 'cc:addr:python-list': 0.09; 'formatted': 0.09; 'url:blog': 0.10; 'read.': 0.13; 'argument': 0.15; '100,': 0.16; '120,': 0.16; '2016': 0.16; 'codebase': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pep8': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; "aren't": 0.22; 'wrote': 0.23; 'this:': 0.23; 'header:In-Reply- To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; 'for,': 0.29; 'code': 0.30; 'certain': 0.31; 'screen': 0.32; 'maybe': 0.33; 'run': 0.33; 'that,': 0.34; 'received:google.com': 0.35; 'on,': 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'url:org': 0.36; 'lines': 0.36; 'received:209.85': 0.36; 'url:2012': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'subject:the': 0.39; 'where': 0.40; 'still': 0.40; 'your': 0.60; 'matter': 0.63; 'strange': 0.63; 'more': 0.63; 'url:10': 0.79; 'chrisa': 0.84; 'to:none': 0.91 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; bh=LjwKYOgubY4IJov0qKrk0dOqsa3nifecNet74QRmOZI=; b=eg38PDawUvImftLJL0eygKsBNBd6RHlFTgitCzQijpKIYCN+eYAlmHx604sT6SdzZU Yzk//xZld/BC6yBwuRW+yHyOcgNwxrdb6L25fnE/Q1EPM807k0AQyzjbNm+UWDHp2VwA wywcmj4czd8HWGS9efTccrHqa5HCxhpejNlZtcUEr7Y+qq1wpPloAnE59yCY6kIQd96E NP3Qy8Kf08nLHr8ZXuNGsj3edwAwHYbl4UOdlNgznQIuYkzupames23bGe8U1PHff//W cRB6TXXs8GJZKNq6UnqgQ3H16GzKzfLGSHdJWw+Ga4jv5N70ZIWnfN2dljQoFwwEqyg6 RJGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=LjwKYOgubY4IJov0qKrk0dOqsa3nifecNet74QRmOZI=; b=LLZvaEQ0iKZWsFj/DYuXZoxCoBncoLI+ZEABi3n1wJpArAWamRY49xyRl9H5kM67MM 2j3fl8XvKFb+lduw77Cs/gMmxW5nn+IUP8xh7HM+MArEJm0NokJZbnFmd+fzUjVBdMSw SfRfyat8NoopccqnWeMbMR/HIXJh7oduF8i/q+/hTSU9uFbDdLf1N+j9NeAsaIjpGS+q WV03pJYXJRr9+b5daxlESUesnYzdE9zf0Ibz8umcDTm27ERp/VAyP61UY6uPkSK7KzWG Nos9AKyfPA3w4zNo+SQSH2SOD+XCubqtUgP47gqjsF3z3kBbAnhISS2QHDrI4U+c6dwZ jkBw== X-Gm-Message-State: AOPr4FVdOpt+WeI2w6LLxssbEJmfYwpohcqtxbp3dtX6uTVGsj3sdlFEKf7jFa0O3Jweozi2pEfDI8v7LYe1eQ== X-Received: by 10.50.123.132 with SMTP id ma4mr12816601igb.92.1460864957423; Sat, 16 Apr 2016 20:49:17 -0700 (PDT) In-Reply-To: <8ff10001-1c49-4490-b873-018507243ea3@googlegroups.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: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <8ff10001-1c49-4490-b873-018507243ea3@googlegroups.com> Xref: csiph.com comp.lang.python:107155 On Sun, Apr 17, 2016 at 1:44 PM, Rustom Mody wrote: > Thats a strange self-contradiction. I wrote this: > http://blog.languager.org/2012/10/layout-imperative-in-functional.html > to make the case against PEP8 style line length strictures. > Which has the SAME code formatted in two styles: > > -- < 80 cols, 48 lines > -- 115 cols 37 lines > > Clearly the 115 cols is MORE fittable in a page than the 80 cols > [Though my argument for that is based on other structural/semantic principles] There are certain specific situations where 80 (79) is the correct width to aim for, but even if you aren't going for that, there's still the general principle that longer lines are harder to read. So maybe you declare that your codebase is allowed to go to 100, or 120, but you don't want to let it run to 2048. No matter WHAT screen you're on, that's too wide! ChrisA