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


Groups > comp.lang.python > #73948

Re: PEP8 and 4 spaces

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!81.171.88.16.MISMATCH!hq-usenetpeers!hq-usenetpeers.eweka.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.056
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'read.': 0.03; 'utf-8': 0.07; '34,': 0.09; 'excluding': 0.09; 'cc:addr:python-list': 0.11; '42,': 0.16; '46,': 0.16; '49,': 0.16; '52,': 0.16; '57,': 0.16; 'lengths': 0.16; 'limit,': 0.16; 'readable': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'bit': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; '31,': 0.24; 'char': 0.24; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'long.': 0.31; 'sense': 0.34; 'common': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'should': 0.36; 'pm,': 0.38; 'little': 0.38; 'quote': 0.39; 'use.': 0.39; 'even': 0.60; 'ago,': 0.61; 'length': 0.61; 'from:charset:utf-8': 0.61; 'back': 0.62; 'places': 0.64; 'more': 0.64; 'skip:\xe2 10': 0.65; 'here': 0.66; 'feeling': 0.68; 'e-mail.': 0.70; '8bit%:43': 0.74; 'jul': 0.74; 'characters,': 0.84; 'longest': 0.84; 'median': 0.84; 'insane': 0.93; 'url:tk': 0.95
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:to :cc:content-type:content-transfer-encoding; bh=1W+XMqmEzkrIqdoAyWZqsZixwi/Kxuv1AO/pHvxvBPI=; b=QutwDt7aBeak/enmRD2fJu2uVKc8C9/SlwLtxyMfYdGCgYjuweE4WwjBeTg07iY1lw qXokD0GsENOytvgLB4Yk9fnxDrG9mgHnzMLlDe/7Utxcdrtswc6ms/LgqGTdhW9j1pTl jp5Ei+Q9BbaAGWBP4YuR0f877F12b4r7hth+7kGm5CHqhrpQqPcKNI9qx2bwdoUVzQjl B0y5Q8h8OATSRPdmiAvsFx3cIdr4XHz+9Kdfxh5XOl2A8umUU+1eTx/9b/iGn+bVRn5A ZP4c1iNNsHmsxcfvQ1D8cl+Yc+fgpj2cenDTj1Qh1X3WHvFxuwOQ2oO2hqxShYsinmge idPg==
MIME-Version 1.0
X-Received by 10.43.13.132 with SMTP id pm4mr15412710icb.6.1404470679880; Fri, 04 Jul 2014 03:44:39 -0700 (PDT)
In-Reply-To <53B59358.2040404@tobiah.org>
References <53B59358.2040404@tobiah.org>
Date Fri, 4 Jul 2014 12:44:39 +0200
Subject Re: PEP8 and 4 spaces
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
To Tobiah <tshepard@rcsreg.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc "python-list@python.org" <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 <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.11487.1404470682.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404470682 news.xs4all.nl 2904 [2001:888:2000:d::a6]:44899
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 4665
X-Received-Body-CRC 2447651874
Xref csiph.com comp.lang.python:73948

Show key headers only | View raw


On Thu, Jul 3, 2014 at 7:31 PM, Tobiah <tshepard@rcsreg.com> wrote:
> Anyway, I gave up the 80 char line length long
> ago, having little feeling for some dolt on
> a Weiss terminal that for some reason needs to
> edit my code.

And yet, you did not give up an even more insane line length limit, in
e-mail.  The longest line in your original message is a measly 57
characters long.  The median line length is 46 characters.  Which is
pretty insane, and ultra-hard to read.  You can do more in e-mail.

> Each line of characters MUST be no more than 998 characters, and
> SHOULD be no more than 78 characters, excluding the CRLF.

That's the standard, [RFC 5322][]; the exact same quote appeared back
in [RFC 2822][].  However, many places actually want you to use a bit
less; common values include 70 or 72.  But still, it is MUCH more
roomy and readable than the value you use.

Here are the line lengths in the original message:

[47, 45, 45, 46, 46, 47, 45, 5, 46, 43, 46, 47, 47, 49, 31, 57, 52,
 34, 42, 23]

[RFC 5322]: http://tools.ietf.org/html/rfc5322#section-2.1.1
[RFC 2822]: http://tools.ietf.org/html/rfc2822#section-2.1.1

-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense

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


Thread

Re: PEP8 and 4 spaces Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-04 12:44 +0200

csiph-web