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


Groups > comp.lang.python > #82100

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

References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <m635bj$n5g$1@ger.gmane.org> <CAFaCOgxknjCTkQB1q0WNZu+sdsX+uUFVtTqLeqh=HUG0cS2bXA@mail.gmail.com>
Date 2014-12-08 15:46 +1100
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16703.1418013963.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Dec 8, 2014 at 3:39 PM, Aahan Krish <krish@aahan.me> wrote:
> As for why I care the "79 chars" part of PEP 8:
>
> - Coding in terminals and VIM with multiple windows open.

Then measure your width with tabs set to 8 spaces, and nothing else
matters. Otherwise, go back to your previous statement about avoiding
arbitrary rules, maximize your terminal window (let's see, if I hit
Alt-F10 on my Xfce system, I get a terminal window that's 51 rows, 190
columns; F11 increases that to 55 rows), and ignore the precise
counts. All your other points are just as valid with 82 characters as
with 79, and pretty much as valid with anything up to about 100-120.

> - 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!

It goes to 100 frequently, and I found one line that went to 126... if
that's your idea of "good", then I think going as far as 100 in your
own code shouldn't be a problem.

ChrisA

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


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Chris Angelico <rosuav@gmail.com> - 2014-12-08 15:46 +1100

csiph-web