<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>