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


Groups > comp.lang.python > #82098

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <m635bj$n5g$1@ger.gmane.org>
Date 2014-12-08 04:39 +0000
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From Aahan Krish <krish@aahan.me>
Newsgroups comp.lang.python
Message-ID <mailman.16701.1418013550.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi Ned,

> I'm curious why you care about the "79 characters" part of PEP8 if you don't care about the "use spaces" part of PEP8.

It's just that I don't like arbitrary rules. IMHO, spaces aren't
"better than" tabs, and people should refrain from saying that. Both
have their fair bit of disadvantages and it finally comes down to
personal/team preference or consistency.

I like tabs because they are flexible. As of now I am still
considering spaces for two reasons—(1) maintaining a standard
line-length of 79-120 characters; (2) Even if I use tabs, I "may" need
spaces for aligning.

I have no major projects now, so I am free to decide, and am taking my
time for a well-thought decision.

As for why I care the "79 chars" part of PEP 8:

- Coding in terminals and VIM with multiple windows open.

- Avoiding horizontal scrollbars for code blocks on the web; GitHub
for instance. E.g.
https://github.com/torvalds/linux/blob/master/kernel/async.c -- That
is good!

- Readability; The same reason why people suggest "short paragraphs",
i.e. allow readers to quickly go through your content, or in my case,
code.

Best,
Aahan

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


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Aahan Krish <krish@aahan.me> - 2014-12-08 04:39 +0000

csiph-web