<div>I'd like it if comments and/or white space could follow the \. Trailing white space after one is always difficult to notice, and the comment after the line continuation is a compelling use-case. Together, we'll have a bit less error prone line continuation syntax.</div><div class="mailbox_signature">—<br>Sent from <a href="https://bit.ly/SZvoJe">Mailbox</a> for iPhone</div><br><br><div class="gmail_quote"><p>On Thu, May 16, 2013 at 7:45 PM, Bruce Leban <span dir="ltr"><<a href="mailto:bruce@leapyear.org" target="_blank">bruce@leapyear.org</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p dir="ltr"></p>
<p dir="ltr">On May 16, 2013 5:05 PM, "Terry Jan Reedy" <<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>> wrote:</p>
<p dir="ltr">> To me, having the \ below escape the newline that occurs 60 characters later is 'counter-intuitive'.<br>
><br>
> a + \ # a very long comment that seems to go on and on forever<br>
><br>
> The \ where it is looks to me like a stray typo and a bug. I would be less surprised if the code below worked, so my counter-proposal is that \ escaping of newline work after comments.<br>
><br>
> >>> 1 + # current behavior \<br>
> SyntaxError: invalid syntax<br>
><br>
> >>> 1 + # proposed behavior \<br>
>     2<br>
> 3<br>
><br>
> >>><br>
><br>
> > and less-than-useful behaviour, which IMO it does.<br>
><br>
> Useful is a different issue. My counte-proposal meets the goal of mixing comments with line-continuation.<br></p>
<p dir="ltr">My objection to this is that it changes meaning of current code while my proposal doesn't. It also changes rule that everything after # is ignored. Simple example:</p>
<p dir="ltr">    x = y,   # \<br>
    z = 1, 2</p>
<p dir="ltr">Admittedly contrived but I spent no time trying to get a less-contrived example.</p>
<p dir="ltr">--- Bruce</p></blockquote></div><br>