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


Groups > comp.lang.python > #73915

Re: PEP8 and 4 spaces

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python.list@tim.thechases.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'revision': 0.07; 'hooks': 0.09; 'skip:$ 20': 0.09; 'spaces': 0.09; 'width': 0.09; 'cc:addr :python-list': 0.11; '-tkc': 0.16; 'checkout,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'optional': 0.16; 'pep8': 0.16; 'suggestion.': 0.16; 'tabs': 0.16; '(you': 0.16; 'cc:addr:python.org': 0.22; 'char': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'code': 0.31; 'becoming': 0.31; 'display': 0.35; 'there': 0.35; 'really': 0.36; 'revert': 0.36; 'charset:us-ascii': 0.36; 'similar': 0.36; 'turn': 0.37; 'configured': 0.38; 'whatever': 0.38; 'heard': 0.39; 'sure': 0.39; 'even': 0.60; "you're": 0.61; 'back': 0.62; "you'll": 0.62; 'more': 0.64; 'covers': 0.68; 'hammer': 0.84; 'protest': 0.84; 'received:50.22': 0.84; 'standards.': 0.84
Date Thu, 3 Jul 2014 12:46:46 -0500
From Tim Chase <python.list@tim.thechases.com>
To Tobiah <tshepard@rcsreg.com>
Subject Re: PEP8 and 4 spaces
In-Reply-To <53B59358.2040404@tobiah.org>
References <53B59358.2040404@tobiah.org>
X-Mailer Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - boston.accountservergroup.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - tim.thechases.com
X-Get-Message-Sender-Via boston.accountservergroup.com: authenticated_id: tim@thechases.com
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.11467.1404414391.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404414391 news.xs4all.nl 2936 [2001:888:2000:d::a6]:42580
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73915

Show key headers only | View raw


> Any evidence out there that this part of PEP8 is becoming
> more optional or even obsolete, as I've heard others
> say about the 80 char line length?
> 
> Just need ammo for when the hammer of code
> unification comes down.

I'm not sure you'll get a whole lot of "PEP8 is optional or
obsolete", though some may protest the 80-char suggestion.

While I prefer tabs for similar reasons you present (I can set them
to display at whatever width is comfortable), I have Vim configured
to expand tabs into spaces so that my code conforms to standards.

If you're really picky about it, just create hooks in your VCS (you
ARE using revision control, right?) that turn
$STANDARD_NUMBER_OF_SPACES into a tabs at checkout, and then revert
tabs back to that number of spaces pre-commit.  For git, this SO
post covers it:

http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs

-tkc


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


Thread

Re: PEP8 and 4 spaces Tim Chase <python.list@tim.thechases.com> - 2014-07-03 12:46 -0500

csiph-web