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


Groups > comp.lang.python > #31594

Re: A desperate lunge for on-topic-ness

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'pep': 0.09; 'splitting': 0.09; '100,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happily': 0.16; 'inclined': 0.16; 'oct': 0.16; 'pep8': 0.16; 'wider': 0.16; 'wrote:': 0.17; "shouldn't": 0.17; 'tend': 0.17; 'thu,': 0.17; 'preferred': 0.20; 'bit': 0.21; 'received:209.85.214.174': 0.21; 'logical': 0.22; "i'd": 0.22; 'split': 0.23; "i've": 0.23; 'long,': 0.24; 'header:In-Reply- To:1': 0.25; 'looks': 0.26; 'right.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'lines': 0.28; "people's": 0.29; 'character': 0.29; 'probably': 0.29; "i'm": 0.29; 'usually': 0.30; '(and': 0.32; 'generally': 0.32; 'goes': 0.33; 'zero': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'pm,': 0.35; "won't": 0.35; 'received:209.85': 0.35; 'but': 0.36; 'characters': 0.36; "i'll": 0.36; 'rather': 0.37; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'most': 0.61; 'first': 0.61; 'realise': 0.65; 'strategies': 0.76; 'demands.': 0.84; 'it"': 0.84; 'hand,': 0.97
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:to :content-type; bh=KKy7c8dZWlvI3dIJJaJMfq0tPaxghOwT0hbDq7Oegt0=; b=drykp5MaBfVS/6v64k60cK5KMDFWzfl+Lec7x6DS7F5ncUn7WsIGBQnk0fIJ0Wyy78 xGBeVUB+1XypUSJHOIcfypvlEMoCBmxLOHDI8Iazal9EbXbvifvg5cw21lr3R59FmBGw thc1+E6//NZSNDsmCAMS+YRVl0I0aMTC/D7y7QIKwcnE6Ut9ehSGScGnZzoSj0OaHBrV MiXyCf7EaMNUh9xiXGD3Lf74YxnKGxOStR7QU4s4GsZJZveD9ku7qe0omjwk585BPHMM AU3salWiGBz8DFOIWgdVsmd4kMFPNZlcKnEBICq3jOwGdX2BOTmYj0rHq4sUlZNMKfDm prkQ==
MIME-Version 1.0
In-Reply-To <CANaSqUfLX7V2OxhO+fdVtmQcDzNfEgQfutHak_G-9_1_4nNr1Q@mail.gmail.com>
References <CANaSqUfLX7V2OxhO+fdVtmQcDzNfEgQfutHak_G-9_1_4nNr1Q@mail.gmail.com>
Date Thu, 18 Oct 2012 17:13:55 +1100
Subject Re: A desperate lunge for on-topic-ness
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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 <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2404.1350540845.27098.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1350540845 news.xs4all.nl 6947 [2001:888:2000:d::a6]:38689
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:31594

Show key headers only | View raw


On Thu, Oct 18, 2012 at 5:06 PM, Zero Piraeus <schesis@gmail.com> wrote:
> What are people's preferred strategies for dealing with lines that go
> over 79 characters? A few I can think of off the bat:
>
> 1. Say "screw it" and go past 79, PEP8 be damned.
>
> 6. Realise that if it's that long, it probably shouldn't have been a
> list comprehension in the first place.

Depending on how far past, I'd be most inclined to one of these. I
don't consider the eightieth character position to be sacrosanct, but
on the other hand, I'm not going to go thousands of characters to the
right. Most of my development screens will happily go to ~200
characters, definitely above 100, so I tend to write a bit wider than
PEP 8 demands. Generally I'd not look at splitting a line until it
goes over 100-120 characters. (And even then, I won't automatically
split it. I've been known to write some rather long lines of code.)
When I do split, it's usually by dividing the line into multiple
logical actions; if the split looks like type #5, I'll not split it.

ChrisA

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


Thread

Re: A desperate lunge for on-topic-ness Chris Angelico <rosuav@gmail.com> - 2012-10-18 17:13 +1100

csiph-web