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


Groups > comp.lang.python > #15476

Re: Line continuation issue\

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <anikom15@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'continuation': 0.07; 'subject:issue': 0.07; 'python': 0.08; 'ignored,': 0.16; 'subject:\\': 0.16; 'symbol,': 0.16; 'useless.': 0.16; 'language': 0.17; 'wrote:': 0.18; 'maybe': 0.21; 'header:In-Reply-To:1': 0.23; 'code': 0.25; 'discussed': 0.28; 'keeps': 0.30; 'whitespace': 0.30; 'nov': 0.31; 'propose': 0.32; 'seeing': 0.32; 'to:addr :python-list': 0.32; 'header:User-Agent:1': 0.33; 'forces': 0.34; 'from:charset:iso-8859-1': 0.34; 'expanding': 0.35; 'fri,': 0.36; 'charset:us-ascii': 0.36; 'but': 0.37; 'issue': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'difficult': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'within': 0.60; '2011': 0.62; 'received:209.85.216.174': 0.73; 'render': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Prmsi5SIExsJYjZ5kJz7gDYgjaV5lipRT53vAYDSGa8=; b=gkoWNWAOJTEqOIRd3S1kSv+879IAsVfM7JrVXtkD0u1QtJrqus354UgquXNIZtTyqw LMOGSbKPy9/BCZS+2Mz9oX5t69jHZeX0UEvMHaZpHkNFmkQocRQU2jQKZK8Vm1qHHB8d aTayv8XscSpzvhZWR5oO9b8LrqeOGQuCWZdA4=
Date Tue, 8 Nov 2011 11:11:58 -0800
From Westley Martínez <anikom15@gmail.com>
To python-list@python.org
Subject Re: Line continuation issue\
References <CAKz-UDMhqMTBsMLvRHYNz7V4=ZYMQ3uaR4qRFUQy3JqDEbsemg@mail.gmail.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <CAKz-UDMhqMTBsMLvRHYNz7V4=ZYMQ3uaR4qRFUQy3JqDEbsemg@mail.gmail.com>
User-Agent Mutt/1.5.21 (2010-09-15)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.2550.1320779525.27778.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1320779525 news.xs4all.nl 6874 [2001:888:2000:d::a6]:43777
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15476

Show key headers only | View raw


On Fri, Nov 04, 2011 at 11:10:58AM -0400, Steven Lehar wrote:
> Is this the right place to propose language extensions?
> 
> My Python code keeps expanding rightwards, it is difficult to keep it
> contained within reasonable limits. But the standard line continuation \
> is positively anti-Pythonic because an *invisible* white space between \
> and [CR] will render it useless.
> 
> How about a new Python symbol, maybe \\ that CAN have following whitespace
> which is ignored, so that seeing a \\ in the code forces it to continue on
> the next line.
> 
> Has this issue been discussed already?
> 
>   slehar

Use subroutines.

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


Thread

Re: Line continuation issue\ Westley Martínez <anikom15@gmail.com> - 2011-11-08 11:11 -0800

csiph-web