Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71612

Re: PEP 8 : Maximum line Length :

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 <rosuav@gmail.com>
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 <CACT3xuWxJHqqV26R+3aYvpovRs7OZ6_TFynSVV-n-b+EkMmtKA@mail.gmail.com> <mailman.9952.1399970767.18130.python-list@python.org> <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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10041.1400164039.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, May 16, 2014 at 12:17 AM,  <wxjmfauth@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: PEP 8 : Maximum line Length : Peter Otten <__peter__@web.de> - 2014-05-13 10:45 +0200
  Re: PEP 8 : Maximum line Length : Rustom Mody <rustompmody@gmail.com> - 2014-05-13 06:18 -0700
  Re: PEP 8 : Maximum line Length : wxjmfauth@gmail.com - 2014-05-15 07:17 -0700
    Re: PEP 8 : Maximum line Length : Chris Angelico <rosuav@gmail.com> - 2014-05-16 00:27 +1000
      Re: PEP 8 : Maximum line Length : wxjmfauth@gmail.com - 2014-05-15 08:48 -0700
      Re: PEP 8 : Maximum line Length : albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-05-17 12:52 +0000
        Re: PEP 8 : Maximum line Length : Chris Angelico <rosuav@gmail.com> - 2014-05-17 23:18 +1000
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 09:49 -0400
        Re: PEP 8 : Maximum line Length : Tim Chase <python.list@tim.thechases.com> - 2014-05-17 08:28 -0500
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 09:46 -0400
        Re: PEP 8 : Maximum line Length : Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-17 15:02 +0100
          Re: PEP 8 : Maximum line Length : Roy Smith <roy@panix.com> - 2014-05-17 10:06 -0400
            Re: PEP 8 : Maximum line Length : Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-17 15:21 +0100
            Re: PEP 8 : Maximum line Length : Rustom Mody <rustompmody@gmail.com> - 2014-05-17 10:46 -0700

csiph-web