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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 : 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.