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


Groups > comp.lang.python > #15476

Re: Line continuation issue\

Date 2011-11-08 11:11 -0800
From Westley Martínez <anikom15@gmail.com>
Subject Re: Line continuation issue\
References <CAKz-UDMhqMTBsMLvRHYNz7V4=ZYMQ3uaR4qRFUQy3JqDEbsemg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2550.1320779525.27778.python-list@python.org> (permalink)

Show all headers | 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