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


Groups > comp.lang.python > #51570

Re: PEP8 79 char max

Path csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeeder.ewetel.de!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'convention.': 0.07; 'extent': 0.07; 'pep': 0.09; 'width': 0.09; 'wrapped': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '(just': 0.16; 'columns': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'lengths': 0.16; 'pep8': 0.16; 'tempted': 0.16; 'wastes': 0.16; 'wider': 0.16; ':-)': 0.16; 'sender:addr:gmail.com': 0.17; 'basically': 0.19; 'things.': 0.19; 'written': 0.21; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'long,': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'lines': 0.31; 'follows': 0.31; 'everyone': 0.33; 'comment': 0.34; 'screen': 0.34; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'project': 0.37; 'window': 0.38; 'space': 0.40; 'days': 0.60; 'blank': 0.60; 'most': 0.60; 'today.': 0.61; 'new': 0.61; 'real': 0.63; 'stand': 0.64; 'finally': 0.65; 'benefit': 0.68; 'promise': 0.68; 'increasing': 0.74; '100': 0.79
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1s3ZG++jq83IArE94ny8uDGkdTre/ix9/STGGij0O3Y=; b=xJQUnuNW0kIlZ1RFaqNnqV1+Rp0WmnQB/IBPNBDuhB8iEl0Lj6UlhalXvokEDZ/H6E W+OXLJBD6kFUu2rfURLIrDXibOsLyb+52JeCRlCgTy4ZeuTB7VLFL2hN5qtKfxIATES/ YAA3+Z7bJf0YF73unehd1pHdjZanlLg1opY4DjpOpmc9pHlUi1zL9TKI2bpndSRn5zYt T47zFL1PjXBuWBQPIMLv03Lr+H/hZ8aB/H0mam3CfkY+ZrWceL0tLfgJ+OvNyLm0zg9Z B7XYeMxTRRHtXy5Occi6xNAONTEIFSi5pi9p0/4sMbyL/mYjpN68N0FfpjHGvMmaj0kU TViw==
MIME-Version 1.0
X-Received by 10.50.101.36 with SMTP id fd4mr226580igb.13.1375199053075; Tue, 30 Jul 2013 08:44:13 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <b5q232F3icnU1@mid.individual.net>
References <51F6C5F5.5020201@Gmail.com> <kt6l70$6q4$1@ger.gmane.org> <CANc-5UwuE2w7d9NHaaWDwYeLtE6aSQrGXoTMx4k9xYxa6T6UfA@mail.gmail.com> <CAN1F8qWpgKRmF8bUq5_=uiMGnjmEHnWu_r+rjVcmmrOddDLCoQ@mail.gmail.com> <mailman.5309.1375193222.3114.python-list@python.org> <b5q232F3icnU1@mid.individual.net>
Date Tue, 30 Jul 2013 10:44:12 -0500
X-Google-Sender-Auth bqkv7LWuuXQm4oiZNlhe-p6ivk8
Subject Re: PEP8 79 char max
From Skip Montanaro <skip@pobox.com>
To Neil Cerutti <neilc@norwich.edu>
Content-Type multipart/mixed; boundary=047d7bea2f160e98bc04e2bc7b63
Cc python-list@python.org
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5316.1375199062.3114.python-list@python.org> (permalink)
Lines 408
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375199062 news.xs4all.nl 15891 [2001:888:2000:d::a6]:50290
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51570

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

> So if everyone basically follows PEP8 we all benefit from playing by
> the same game rules, as it were.

(I think I'm agreeing with you, but nonetheless, I will forge ahead.)

To the extent that 80-column window widths have been common for so
long, PEP 8 or not (and Python or not), there is a ton of code out
there which abides by that convention.  More-or-less unilaterally
increasing the recommended max line width to 100 (or 99?) columns
isn't likely to improve things.  People like me (who prefer the status
quo) will complain about all the new-fangled code written to a wider
standard (and will be tempted to reformat).  People who like the new
standard will complain about old code wasting all that white space
(and will be tempted to reformat). :-)

Finally (I promise this is my last word on the topic), most lines
don't need to be wrapped as they stand today.  See the attached graph
for the distribution of line lengths for the current project where I
spend most of my time these days (just Python code, blank lines
elided, comment lines included).  Stretching the max out to 100
columns when most lines are less than 60 columns just wastes screen
real estate.

Skip

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


Thread

Re: PEP8 79 char max Skip Montanaro <skip@pobox.com> - 2013-07-30 09:06 -0500
  Re: PEP8 79 char max Neil Cerutti <neilc@norwich.edu> - 2013-07-30 14:49 +0000
    Re: PEP8 79 char max Skip Montanaro <skip@pobox.com> - 2013-07-30 10:44 -0500
    Re: PEP8 79 char max Joshua Landau <joshua@landau.ws> - 2013-07-30 17:41 +0100

csiph-web