Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'continuation': 0.07; 'python': 0.08; 'read.': 0.10; 'conceivably': 0.16; 'impose': 0.16; 'lan': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'errors,': 0.18; 'to:2**1': 0.20; 'header:In-Reply-To:1': 0.22; 'indentation': 0.23; 'though.': 0.23; 'to:name:python-list@python.org': 0.23; 'pm,': 0.24; 'aug': 0.24; 'code': 0.25; 'statement': 0.25; 'described': 0.28; 'problem': 0.28; 'expressions': 0.29; 'lines': 0.30; 'splitting': 0.30; 'expression': 0.32; 'yet': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.33; 'idea': 0.34; 'trouble': 0.35; 'charset:us-ascii': 0.36; 'skip:: 10': 0.37; 'statements': 0.37; 'could': 0.38; 'cases,': 0.38; 'easier': 0.38; 'subject:: ': 0.39; 'finished': 0.39; 'to:addr:python.org': 0.39; 'received:98': 0.61; 'free': 0.63; 'received:98.138.90': 0.64; 'received:bullet.mail.ne1.yahoo.com': 0.64; 'received:98.138.91': 0.66; 'received:98.138': 0.67; 'received:mail.ne1.yahoo.com': 0.67; 'received:ne1.yahoo.com': 0.67; 'reply-to:addr:yahoo.com': 0.70; 'header:Reply-To:1': 0.71; 'subject:line': 0.73 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 193412.38754.bm@omp1048.mail.ne1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1313031503; bh=AGON+3NMeWZKhl/HqvvSwF2qIL1sIh/b2VyEgrXi/q0=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Sgc3EqgP/6eYgtDQ5OmPFECQAzKukVNlq/jGHzMt1+VrbiQTRwSMrf/T8BWEyqt2SWtjGt2TbejqEaiVTvYpuu9kYJu2BuokzOErGAEb3lminF8JxHhL9ybKU/qXEzxEnWdyFU56aZLytKY2trbzyYFNPFyJRuv3vMdlYEIuv/8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=1rKflECWcyhCTlgNODp8gtnOTH63/F2aEFI403gZDbr/jJyrNKMcrYJmzKuMjMCza/pO9t/z+8W9iAH5hNitGYbSjYrIeBksyFsFB7hDqSYc8CJTr3xXI1xMp5viPvbFwurx0BVZvS+ynVVEljEdQmeh7F0pmbUXVsFydeDvsTo=; X-YMail-OSG: sOs6l04VM1m8zKxJR6R.lwBXimmHk7Py__4249ukEKT1QQR VcC6XIraKxnL2XChmD.sns4j0WqR3DWnSltUhXw5B3j5kBJClJo9ogKdY0Hb 1xEXDZ32vq3dWLFuUusOQyZIZ.48ISIiiPTSPLmRtbQ1vQsEiFnDAiFo7wst 2..0FwH8u8HZlkO8dZMkbnTpsZZGJKytNDTILgvuaMfutNPSV9Z_FwHFmlZy PqK2LKqnVJW4Yp2SjQbtrmlWNhPjOcmq4HhK.544Bwlc7qY9SHJpMLzszOLm ShUDR7K74nXVrTplLWjYNTT8YauII1hZx5woL88U3ICJW0mrIl8pWHSknRJH LB0z_yXwQ7lR4RcUzKi38MC5dffxJeA2iXiqBp27vqZrNyZsF24Y67l43.PH 1M2gPYnkLwctggzu7a_mZTaGaniLVMRXGxhevq1tJXQ-- X-Mailer: YahooMailWebService/0.8.113.313619 References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> Date: Wed, 10 Aug 2011 19:58:22 -0700 (PDT) From: Yingjie Lan Subject: Re: allow line break at operators To: Chris Angelico , "python-list@python.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Yingjie Lan 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313031655 news.xs4all.nl 23849 [2001:888:2000:d::a6]:52239 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11172 On Wed, Aug 10, 2011 at 1:58 PM, Yingjie Lan wrote: > Is it possible for python to allow free splitting of single-line statements > without the backslashes, if we impose that expressions can only be split > when it is not yet a finished expression? :The trouble is that in a lot of cases, the next statement after an :unfinished expression could conceivably be a continuation of it. If :this were permitted, it would have to also require that the :continuation lines be indented, to avoid the problem described above. :It'd still have the potential to mis-diagnose errors, though. Indentation is a good idea to reduce the likelihood of such troubles. and also produce code that is easier to read. Yingjie