Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31593
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <z@etiol.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.058 |
| X-Spam-Evidence | '*H*': 0.88; '*S*': 0.00; 'pointless': 0.09; 'slightly': 0.15; '"well,': 0.16; 'pep8': 0.16; 'temp': 0.16; "shouldn't": 0.17; 'variable': 0.20; 'preferred': 0.20; 'trying': 0.21; 'assignment': 0.22; "i've": 0.23; 'long,': 0.24; 'least': 0.25; 'message-id:@mail.gmail.com': 0.27; 'lines': 0.28; "people's": 0.29; 'probably': 0.29; 'received:209.85.210.174': 0.30; 'shorter': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'so,': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'previous': 0.37; 'received:209': 0.37; 'perform': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'first': 0.61; 'fit.': 0.65; 'realise': 0.65; 'strategies': 0.76; 'it"': 0.84 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:from:date:x-google-sender-auth :message-id:subject:to:content-type:x-gm-message-state; bh=kfj9d17i0SVRYKZpahuon/+alyTZqZJFsTOCnFgNQvc=; b=LoYnwZbewAvCM2W6LUgwagR5EQWwh8ZgWbJQ5vy58wLP+VkXrR0ReW2OCufiN1uGIl kDU5ydgjLC01DbbJA2M0rReAsbNHLJuOKEz1ttRLpxsBWpglFwTEZg5WPHinfGuSMUrO OwM8b6zhKmh3QatPKWkLhx/8xDZsCMxDzwAvCVhcRemCPKIxHgce9vA3flzg97vdTEfP dlF9bkdk6fZzIss0WA6Pn3xS3rGTSy5fnQq5NK/vplv6+kDNFpaOGTBvr/p47kwWAhmN BGkhdlObfpNWKTYZCnWRn3aop/lAXjRFmqFqB+xtCw+yEladI1gUV6c2VBs/uk+hVtbM Au3w== |
| MIME-Version | 1.0 |
| Sender | z@etiol.net |
| X-Originating-IP | [190.104.26.20] |
| From | Zero Piraeus <schesis@gmail.com> |
| Date | Thu, 18 Oct 2012 02:06:19 -0400 |
| X-Google-Sender-Auth | ilNHHwQU099caqo11MGCaIdGKcQ |
| Subject | A desperate lunge for on-topic-ness |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| X-Gm-Message-State | ALoCoQk3ZHDf2SbXsebzteAgMunWnGE0Aqui/xE6sWLubULaiewwrAJcuehkcplxSQ78mnLJtqQV |
| 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.2403.1350540402.27098.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350540402 news.xs4all.nl 6906 [2001:888:2000:d::a6]:35942 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31593 |
Show key headers only | View raw
: Okay, so, first thing vaguely Python-related that comes to mind [so probably not even slightly original, but then that's not really the point]: 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. 2. Say "screw it" and break the line using a backslash. 3. Say "well, at least it's not a backslash" and break the line using parentheses. 4. Spend 45 minutes trying to think up shorter [but still sensible] variable names to make it fit. 5. Perform an otherwise pointless assignment to a temp variable on the previous line to make it fit. 6. Realise that if it's that long, it probably shouldn't have been a list comprehension in the first place. Any I've missed? Any preferences? -[]z.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
A desperate lunge for on-topic-ness Zero Piraeus <schesis@gmail.com> - 2012-10-18 02:06 -0400
Re: A desperate lunge for on-topic-ness Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-18 06:31 +0000
Re: A desperate lunge for on-topic-ness Hans Mulder <hansmu@xs4all.nl> - 2012-10-18 11:07 +0200
Re: A desperate lunge for on-topic-ness wxjmfauth@gmail.com - 2012-10-18 02:33 -0700
Re: A desperate lunge for on-topic-ness Tim Chase <python.list@tim.thechases.com> - 2012-10-18 06:05 -0500
Re: A desperate lunge for on-topic-ness Chris Angelico <rosuav@gmail.com> - 2012-10-18 21:01 +1100
RE: A desperate lunge for on-topic-ness "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-10-18 18:42 +0000
Re: A desperate lunge for on-topic-ness Ben Finney <ben+python@benfinney.id.au> - 2012-10-19 11:33 +1100
Re: A desperate lunge for on-topic-ness rusi <rustompmody@gmail.com> - 2012-10-18 20:35 -0700
Re: A desperate lunge for on-topic-ness Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-19 04:08 +0000
Re: A desperate lunge for on-topic-ness Zero Piraeus <schesis@gmail.com> - 2012-10-18 06:31 -0400
Re: A desperate lunge for on-topic-ness rusi <rustompmody@gmail.com> - 2012-10-17 23:55 -0700
Re: A desperate lunge for on-topic-ness Paul Rubin <no.email@nospam.invalid> - 2012-10-17 23:56 -0700
Re: A desperate lunge for on-topic-ness Grant Edwards <invalid@invalid.invalid> - 2012-10-18 13:16 +0000
Re: A desperate lunge for on-topic-ness Ben Finney <ben+python@benfinney.id.au> - 2012-10-19 11:39 +1100
Re: A desperate lunge for on-topic-ness Den <patentsvnc@gmail.com> - 2012-10-18 08:55 -0700
Re: A desperate lunge for on-topic-ness Neil Cerutti <neilc@norwich.edu> - 2012-10-18 16:13 +0000
Re: A desperate lunge for on-topic-ness Chris Angelico <rosuav@gmail.com> - 2012-10-19 03:21 +1100
RE: A desperate lunge for on-topic-ness "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-10-18 18:51 +0000
RE: A desperate lunge for on-topic-ness "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-10-18 18:50 +0000
Re: A desperate lunge for on-topic-ness Zero Piraeus <schesis@gmail.com> - 2012-10-18 17:36 -0400
Re: A desperate lunge for on-topic-ness Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-19 01:50 +0000
Re: A desperate lunge for on-topic-ness Den <patentsvnc@gmail.com> - 2012-10-18 08:55 -0700
Re: A desperate lunge for on-topic-ness Grant Edwards <invalid@invalid.invalid> - 2012-10-18 17:44 +0000
Re: A desperate lunge for on-topic-ness Gene Heskett <gheskett@wdtv.com> - 2012-10-18 18:53 -0400
Re: A desperate lunge for on-topic-ness Krzysztof Voss <shobbo@gmail.com> - 2012-10-19 15:16 -0700
Re: A desperate lunge for on-topic-ness Krzysztof Voss <shobbo@gmail.com> - 2012-10-19 15:16 -0700
csiph-web