Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'syntax': 0.04; 'amounts': 0.07; 'subject:PEP': 0.07; 'earliest': 0.09; 'enormous': 0.09; 'spaces': 0.09; 'cc:addr:python-list': 0.11; 'aggressively': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'shorten': 0.16; 'symbols': 0.16; 'uniquely': 0.16; '(you': 0.16; 'wrote:': 0.18; 'producing': 0.19; 'working.': 0.19; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'days,': 0.24; 'space.': 0.24; 'cc:2**0': 0.24; 'subject: : ': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'characters': 0.30; 'restrict': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '>>>>': 0.31; 'doc': 0.31; 'horizontal': 0.31; 'letter.': 0.31; 'yes.': 0.31; 'another': 0.32; 'quite': 0.32; 'fri,': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'tight': 0.36; 'two': 0.37; 'remote': 0.38; 'letters': 0.60; 'results.': 0.60; 'then,': 0.60; 'effective': 0.61; 'save': 0.62; "you'll": 0.62; 'name': 0.63; 'finally': 0.65; 'yourself': 0.78; 'to:none': 0.92 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=BnY1m6cNUgTVecmYzK7ZQeT0VGkCAJ+M4TwXwNssIRo=; b=RA5St+uYBm86qVOl2iuM+Vwytcr5xiHXGRKBUlIt/N2sec+EcKmzMEXe7yftSRbbLd /gCyaWJ/uHtV+In0RzmxmyQvLUyyq0CI0/I5+YWIMlD7YPuxW2kVwrGaGH5TYmtQtKb1 3JRFpSCvm0cIMysWxoEqUtJx1g5h05fLfAtKvj7CvJ1y0vC5nztiBxFT3LmnCPAI9LOw 47qX0HchkGnpkWbKipCnK/KJ5euqALQPrBUHySlxdVWcyWZIyprwm8EY7+vsurBxealx 2/0A4JvIBUFWcUxwgAH5u68krtsn0cywpYmMfkzvJB0tTNJZ/VokitjywpbvrIvTTSoh CB8w== MIME-Version: 1.0 X-Received: by 10.52.120.39 with SMTP id kz7mr1336067vdb.41.1400164036915; Thu, 15 May 2014 07:27:16 -0700 (PDT) In-Reply-To: <51ad8928-619c-4e9c-b66f-15bd4a2a8124@googlegroups.com> References: <51ad8928-619c-4e9c-b66f-15bd4a2a8124@googlegroups.com> Date: Fri, 16 May 2014 00:27:16 +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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400164039 news.xs4all.nl 2854 [2001:888:2000:d::a6]:53175 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71612 On Fri, May 16, 2014 at 12:17 AM, wrote: > One another trick is to drop spaces around keywords > >>>> 99999and 12345or 9999999999if 'a'in'a' else 88888888or 777777 > 12345 > > and pray, the tools from those who are wasting their time in > writing code analyzers or syntax colorizers or doc strings > collectors or ... are finally working. Depending of the tools > the interpretation may vary, but definitely all are producing > erroneous results. Yes. Another very effective way to get your code below 80 characters is to shorten all names to a single letter. Since you don't need to restrict yourself to monocase Roman letters (as I had to in my earliest programming days, in BASIC), it's actually quite practical to uniquely name everything in a single character; you could save enormous amounts of horizontal space. Then, aggressively "import as" to do the same with remote symbols (you might need two characters for those), and you'll be able to write everything in just a few tight symbols! ChrisA