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


Groups > comp.lang.python > #73912

Re: PEP8 and 4 spaces

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tshepard@rcsreg.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
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; 'checkout,': 0.16; 'git.': 0.16; 'optional': 0.16; 'pep8': 0.16; 'suggestion.': 0.16; 'tabs': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; '(you': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'char': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'post': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'tim': 0.29; "i'm": 0.30; 'code': 0.31; 'becoming': 0.31; 'chase': 0.31; "we're": 0.32; 'display': 0.35; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'revert': 0.36; 'thanks': 0.36; 'similar': 0.36; 'turn': 0.37; 'received:209': 0.37; 'received:10': 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; 'received:10.10': 0.74; 'hammer': 0.84; 'protest': 0.84; 'received:10.10.10': 0.84; 'standards.': 0.84
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=25mr2mgj4N+Iq2incsu5HGFdW1Ai9RYZG0qbKFO5ZIg=; b=Jj4y3Q0o5RPDx+aVGoC6vBo5GFTCLUlDATm4iIV9J4RsAsNSgcS64B+kSa7uFTzJUE TMfGROHl1Z/NDmXZLaJsHFbkMCUh2VNfel+D+YOBW9YNwAQZKwakwrmCnXLEwkFNCyZE F53D4Ahxfh1ru77/+d6WMKw2755J50DlPZgJCbZJJDJagaKM79efXsqAjUbjD5aTv8Yk uHQKkmCEIYbbmfsbgmH6fbOizMwalX/lvI+5FA0suOQRuFQeny+rsiJcNsRtLcQkEhAe 0NYqUJreGlHHfHp7Hu1ygDC7BlMijVjy1rxNt0RM8reAaTYvx3/AFSqD1GHtZQMq87/G MRzQ==
X-Gm-Message-State ALoCoQmZZRm6sy7D3BTlD1d1RTkQvxi/Vo3B6rg2EFNzXhsLdjRn03xkyoMBs7rEhu/J13HGZiwO
X-Received by 10.66.153.80 with SMTP id ve16mr6099430pab.143.1404410525643; Thu, 03 Jul 2014 11:02:05 -0700 (PDT)
Date Thu, 03 Jul 2014 11:02:04 -0700
From Toby Shepard <tshepard@rcsreg.com>
User-Agent Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version 1.0
To Tim Chase <python.list@tim.thechases.com>
Subject Re: PEP8 and 4 spaces
References <53B59358.2040404@tobiah.org> <20140703124646.7acb8123@bigbox.christie.dr>
In-Reply-To <20140703124646.7acb8123@bigbox.christie.dr>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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.11465.1404410534.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404410534 news.xs4all.nl 2858 [2001:888:2000:d::a6]:59477
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73912

Show key headers only | View raw


On 07/03/2014 10:46 AM, Tim Chase wrote:
>> 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
>

Very interesting.  Yes, we're using Git.  Thanks for the suggestion.

Tobiah

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


Thread

Re: PEP8 and 4 spaces Toby Shepard <tshepard@rcsreg.com> - 2014-07-03 11:02 -0700

csiph-web