At Chris Angelico's suggestion, starting another thread on this:<div><br></div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)">The \ line continuation does not allow comments yet statements that span multiple lines may need internal comments. Also spaces after the \ are not allowed but trailing spaces are invisible to the reader but not to the parser. If you use parenthesis for continuation then you can add comments but there are cases where parenthesis don't work, for example, before in a with statement, as well as the current discussion of using \ to make implicit string concatenation explicit. So I propose adopting this rule for trailing \ continuation:</div>

<div style="background-color:rgb(255,255,255)"><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div><br></div></div><blockquote style="font-family:arial,sans-serif;font-size:12.727272033691406px;margin:0px 0px 0px 40px;border:none;padding:0px">

The \ continuation character may be followed by white space and a comment. If a comment is present, there must be at least one whitespace character between the \ and the comment.</blockquote><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">

<br></div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">That is:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div><div style="background-color:rgb(255,255,255)"><div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">x = y + \   # comment allowed here</font></div></div>

</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">    z</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace"><br>

</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">with a as x, \   # comment here may be useful</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">

<font face="courier new, monospace">     b as y, \   # or here</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">     c as z: \   # or here</font></div>

<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace">    pass</font></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font face="courier new, monospace"><br>

</font></div><div style="font-size:12.727272033691406px"><font face="courier new, monospace">x = y +     # syntax error</font></div></div></div><div><div style="background-color:rgb(255,255,255)"><div><div><div style="font-size:12.727272033691406px">

<font face="courier new, monospace">    z</font></div></div></div></div></div><div><div style="background-color:rgb(255,255,255)"><div><div><div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>

</div></div></div></div></div></div></blockquote><div><div style="background-color:rgb(255,255,255)"><div><div><div><font face="arial, sans-serif">Two reasons for requiring a space after the backslash:</font></div><div><font face="arial, sans-serif"><br>

</font></div><div><font face="arial, sans-serif">(1) make the backslash more likely to stand out visually (and we can't require a space before it)</font></div><div><font face="arial, sans-serif"><br></font></div><div>

<font face="arial, sans-serif">(2) \# looks like it might be an escape sequence of some sort while I don't think \ # does, making this friendlier to readers.</font></div><div><font face="arial, sans-serif"><br></font></div>

<div><font face="arial, sans-serif">I'm not passionate about that detail if the rest of the proposal flies.</font></div></div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div></div>

<div><font face="arial, helvetica, sans-serif">--- Bruce</font><div><span style="font-family:arial,helvetica,sans-serif">Latest blog post: Alice's Puzzle Page </span><a href="http://www.vroospeak.com/" style="font-family:arial,helvetica,sans-serif" target="_blank">http://www.vroospeak.com</a></div>

<div><div><font face="arial, helvetica, sans-serif">Learn how hackers think: <a href="http://j.mp/gruyere-security" target="_blank">http://j.mp/gruyere-security</a></font></div></div></div>
<br></div>