Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'continuation': 0.07; 'input,': 0.09; 'yeah,': 0.09; 'cc:addr :python-list': 0.11; 'backslash': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:breaking': 0.16; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'tim': 0.29; 'message- id:@mail.gmail.com': 0.30; 'chase': 0.31; 'fri,': 0.33; "i'd": 0.34; 'could': 0.34; 'received:google.com': 0.35; 'that!': 0.36; 'subject:?': 0.36; 'nov': 0.38; 'partial': 0.84; 'subject:long': 0.84; 'to:none': 0.92; '2013': 0.98 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:cc :content-type; bh=z0A6Zd67RO/P1qZXO5QR/QBm5OO9tm3R5Z9xF+xZzsM=; b=KGxgVgAhFiFnVu4zqAJ8cadyg2fpdFeQmMXcyVBAjwBdlGPkwCy/uhR4foa2H+BGCu 4mgROxmugLOSNcfwHn4Tm9K8VbbYp9KSNZKqU/SX/h+JulZ/L4TQFSLvA0hXLFSMCGgl 8X/O/G6H4qk1SVyd7M87dCBakI/DWihbyWelo+qwWf835YvjAVdUiFkCMlkuwVuHoI2y gsWGF9UCI7332ySsmxKMma7yCyi4Q4xtYYpgfOpEZFRfsiCm8wU67cRJ0qJ2HZmfdElp PSd/aogcqekMyFDHt0ZhxSbqT36CaQ43nTGAs2j5GCtUyQD+aa8dPSpLN1YM9jS+s4cP Lmgg== MIME-Version: 1.0 X-Received: by 10.52.170.78 with SMTP id ak14mr435119vdc.43.1385648464131; Thu, 28 Nov 2013 06:21:04 -0800 (PST) In-Reply-To: <20131128080413.10d4c808@bigbox.christie.dr> References: <5296bf7d$0$29995$c3e8da3$5496439d@news.astraweb.com> <20131128080413.10d4c808@bigbox.christie.dr> Date: Fri, 29 Nov 2013 01:21:04 +1100 Subject: Re: Python and PEP8 - Recommendations on breaking up long lines? From: Chris Angelico Cc: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385648472 news.xs4all.nl 15939 [2001:888:2000:d::a6]:51284 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60690 On Fri, Nov 29, 2013 at 1:04 AM, Tim Chase wrote: > You could work around this with: > > from functools import partial > in_ = partial(open, self.full_path) > out_ = partial(open, self.output_csv, 'ab') > with in_() as input, out_() as output: > do_stuff() Yeah, I think I'd prefer a backslash continuation to that! ChrisA