Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73909
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; '*not*': 0.07; 'difference,': 0.09; 'pep': 0.09; 'spaces': 0.09; 'cc:addr:python- list': 0.11; 'dig': 0.16; 'docs.': 0.16; 'exist;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pep8': 0.16; 'personally,': 0.16; 'prefer.': 0.16; 'rules.': 0.16; 'tabs': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'fine,': 0.31; 'everyone': 0.33; 'fri,': 0.33; "can't": 0.35; 'display': 0.35; 'problem.': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'consistent': 0.36; 'like,': 0.36; 'next': 0.36; 'should': 0.36; 'handle': 0.38; 'whatever': 0.38; 'files': 0.38; 'sure': 0.39; 'up,': 0.60; 'most': 0.60; "you're": 0.61; 'you.': 0.62; 'different': 0.65; 'jul': 0.74; 'gospel': 0.84; 'mechanics': 0.84; '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=VbxmYi0qLgfURSzbB04+ASxKwO+7YCaGp8cAB7z0cgE=; b=WNyU89PWtamRInDW7+y4VNiHtysk8z2KK7Ly9YTp0J+7eHhZN8HCjNVW0AKv9U/tzm QnkGGLE1BhvOPwNmhjydGITqzn70nurF1WaDKbWEI9dX+tjgkY3yYB0vRge2ARiZDUBm Bf7L8hxoj0XIs9PI1NY09B9PzUNvDeXpsdPDnGCdPIlPr85pcROxWTjxBC+UNuRqsZv4 ELCZMS4pxsErcIa0XyVZOe5yEhYb/nRty7pefNYmvnnKWuaDnkKynoZFyOtwKVRW+y3X 9Bsc8F6CmDYn+ZeKe2FIKzqEtchERDgrUVK42AJMjM2F5Z0y8ciG56AgP9QptsACq6yk W0kw== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.195.67 with SMTP id eb3mr3008351vcb.30.1404409107137; Thu, 03 Jul 2014 10:38:27 -0700 (PDT) |
| In-Reply-To | <53B59358.2040404@tobiah.org> |
| References | <53B59358.2040404@tobiah.org> |
| Date | Fri, 4 Jul 2014 03:38:27 +1000 |
| Subject | Re: PEP8 and 4 spaces |
| 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.11463.1404409116.18130.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404409116 news.xs4all.nl 2904 [2001:888:2000:d::a6]:51051 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:73909 |
Show key headers only | View raw
On Fri, Jul 4, 2014 at 3:31 AM, Tobiah <tshepard@rcsreg.com> wrote: > Coworker takes PEP8 as gospel and uses 4 spaces > to indent. I prefer tabs. Boss want's us to > unify. 1) PEP 8 is meant to be guidelines, *not* a set of hard-and-fast rules. 2) Tabs let different people display the indents at different widths. You want it to look like four spaces? No problem. You think it looks better at eight? Fine, set your display to eight. Easy. 3) Perhaps most importantly: You don't have to unify. Let your source control system do the work for you. In git, that's the smudge/clean filters and gitattributes; I don't know the mechanics in hg, but I'm sure it'll exist; in other systems, you might have to rig something up, or dig through the docs. But you should be able to settle on one thing in source control and let everyone check out files in whatever way they like. Personally, I like, use, and recommend, tabs - but the next best thing to tabs is a consistent number of spaces (preferably four). But if you can't make your tools handle the difference, you're going to be putting unnecessary strains on the humans. Let the humans work with whatever they prefer. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-04 03:38 +1000
csiph-web