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


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

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

Started byChris Angelico <rosuav@gmail.com>
First post2014-12-08 15:46 +1100
Last post2014-12-08 15:46 +1100
Articles 1 — 1 participant

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

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

FromChris Angelico <rosuav@gmail.com>
Date2014-12-08 15:46 +1100
SubjectRe: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
Message-ID<mailman.16703.1418013963.18130.python-list@python.org>
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

[toc] | [standalone]


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


csiph-web