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


Groups > comp.lang.python > #74051 > unrolled thread

Re: PEP8 and 4 spaces

Started byDan Stromberg <drsalists@gmail.com>
First post2014-07-06 12:25 -0700
Last post2014-07-06 15:34 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: PEP8 and 4 spaces Dan Stromberg <drsalists@gmail.com> - 2014-07-06 12:25 -0700
    Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-06 15:34 -0400

#74051 — Re: PEP8 and 4 spaces

FromDan Stromberg <drsalists@gmail.com>
Date2014-07-06 12:25 -0700
SubjectRe: PEP8 and 4 spaces
Message-ID<mailman.11557.1404674726.18130.python-list@python.org>
On Thu, Jul 3, 2014 at 10:31 AM, Tobiah <tshepard@rcsreg.com> wrote:
> Coworker takes PEP8 as gospel and uses 4 spaces
> to indent.  I prefer tabs.

I recently converted from tabs to spaces.  I probably still have some
code that uses tabs, but most of my personal stuff has been converted.

I like tabs.  Tabs work better for me than spaces, because I know how
to use them.  Also, some "make" tools insist on tabs.

Also, where many people like 4 spaces or 8 spaces, I prefer tabs
expanded to 3 columns.

But I finally acknowledged that some very smart people don't
understand tabs, or don't want to learn how to use them.  Also, I
figured out how to get python files to use spaces and Makefile's to
use tabs, using some slight vim configuration.

So I'm using 4 spaces now.

It's nice not having to ignore the relevant pep8 and pylint warnings
anymore.  And I don't miss tabs nearly as much as I thought I would.
In fact, I'm not sure I miss them at all.

[toc] | [next] | [standalone]


#74053

FromRoy Smith <roy@panix.com>
Date2014-07-06 15:34 -0400
Message-ID<roy-9D1633.15344206072014@news.panix.com>
In reply to#74051
In article <mailman.11557.1404674726.18130.python-list@python.org>,
 Dan Stromberg <drsalists@gmail.com> wrote:

> On Thu, Jul 3, 2014 at 10:31 AM, Tobiah <tshepard@rcsreg.com> wrote:
> > Coworker takes PEP8 as gospel and uses 4 spaces
> > to indent.  I prefer tabs.
> 
> I recently converted from tabs to spaces.  I probably still have some
> code that uses tabs, but most of my personal stuff has been converted.
> 
> I like tabs.  Tabs work better for me than spaces, because I know how
> to use them.  Also, some "make" tools insist on tabs.

Why should the fact that Make requires tabs affect how you edit Python 
code?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web