<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "></div><div style="font-family: arial, helvetica, sans-serif; "><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; " class="yui_3_2_0_18_131488110604057"><font size="2" face="Arial"><b><span style="font-weight:bold;"><br></span></b></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; " class="yui_3_2_0_18_131488110604057"><font size="2" face="Arial"><b><span style="font-weight:bold;">Hi Gabriel,</span></b></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; " class="yui_3_2_0_18_131488110604057"><font size="2" face="Arial"><b><span style="font-weight:bold;"><br></span></b></font></div><div style="font-family: 'times new roman', 'new york',
 times, serif; font-size: 12pt; " class="yui_3_2_0_18_131488110604057"><font size="2" face="Arial"><b><span style="font-weight:bold;">==================================================</span></b></font></div><div style="font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><b><span style="font-weight:bold;">From:</span></b> Gabriel AHTUNE <gahtune@gmail.com><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Python-ideas] allow line break at operators<br></font><br><div id="yiv1002323749"><font color="#000000" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font size="2">So can be done with this syntax:<br><br></font></font><font class="Apple-style-span" size="3">> x = firstpart * secondpart  +  #line breaks here</font><br><font class="Apple-style-span" size="3">
> anotherpart + #continue </font><br><font class="Apple-style-span" size="3">
> stillanother #continue on.</font><br><font color="#000000" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font size="2"><br>after a "+" operator the line is clearly not finished yet.<br><br clear="all"></font></font><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); ">Gabriel AHTUNE</span><br>


<div class="yui_3_2_0_18_131488110604057" style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><font size="2" face="Arial"><b><span style="font-weight: bold; ">==================================================</span></b></font></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><font size="2" face="Arial"><b><span style="font-weight: bold; "><br></span></b></font></div><div><font class="Apple-style-span" face="Arial" size="2"><b>That's good to me too, which I proposed early in this thread.</b></font></div><div><font class="Apple-style-span" face="Arial" size="2"><b>Then somebody would like to have the operator in the</b></font></div><div><font class="Apple-style-span" face="Arial" size="2"><b>beginning of the next line so that it would stand out.</b></font></div>Then still another one said that indentation is good here.</div><div id="yiv1002323749">So I finally proposed line continuation with
 indentation.</div><div id="yiv1002323749">Since this is Python, we will live with indentation.</div><div id="yiv1002323749">Currently indentation in Python starts a new block,</div><div id="yiv1002323749">but if you view it from the perspective of line breaking,</div><div id="yiv1002323749">it also function as if the line is continued. The line</div><div id="yiv1002323749"><br></div><div id="yiv1002323749">if condition: do_a(); do_b()</div><div id="yiv1002323749"><br></div><div id="yiv1002323749">can be  written as:</div><div id="yiv1002323749"><br></div><div id="yiv1002323749">if condition: #line breaks</div><div id="yiv1002323749"><span class="Apple-tab-span" style="white-space:pre">      </span>do_a(); # ';' is optional here </div><div id="yiv1002323749"><span class="Apple-tab-span" style="white-space:pre">    </span>do_b() # continue</div><div id="yiv1002323749"><br></div><div id="yiv1002323749">Sounds a pretty natural way to allow free line
 breaking.</div><div id="yiv1002323749"><br></div><div id="yiv1002323749"><br></div><div id="yiv1002323749">Yingjie</div></div></div></div></body></html>