[Python-ideas] Allowing comments after line continuations

David Mertz mertz at gnosis.cx
Thu May 16 23:07:50 CEST 2013


I feel like this change would only help modestly with the string
concatenation issue.  I just want it because... well, I've frequently
wished it were there in working code that has nothing to do with string
concatenation... and usually wound up using superfluous and less clear
extra parentheses where continuation lines would be nicer.


On Thu, May 16, 2013 at 1:58 PM, Andrew Barnert <abarnert at yahoo.com> wrote:

> From: Bruce Leban <bruce at leapyear.org>
> Sent: Thursday, May 16, 2013 11:41 AM
>
>
> >The \ continuation character may be followed by white space and a comment.
>
> This seems clean and obvious once you learn it, and it will be easy for
> novices to learn, and it won't affect any existing (working) code.
>
>
> So, if this is enough to solve the string concatenation problem to
> everyone's satisfaction without any other changes, I'm definitely +1 on it.
>
> Otherwise, I guess +0.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons.  Intellectual property is
to the 21st century what the slave trade was to the 16th.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130516/efd04dad/attachment.html>


More information about the Python-ideas mailing list