<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><font class="Apple-style-span" size="3">Yeah, that might be a challenge for the Python </font>interpreter, for it has to check if the next line is indented or not. But it might be worthwhile to take this trouble, so that the coder has more freedom, and the code is hopefully better to read.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><br></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Matt Joiner <anacrolix@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Yingjie Lan <lanyjie@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b>
"python-list@python.org" <python-list@python.org>; python-ideas <python-ideas@python.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, September 2, 2011 1:33 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Python-ideas] allow line break at operators<br></font><br>I guess the issue here is that you can't tell if an expression is<br>complete without checking the indent of the following line. This is<br>likely not desirable.<br><br>On Thu, Sep 1, 2011 at 11:43 PM, Yingjie Lan <<a ymailto="mailto:lanyjie@yahoo.com" href="mailto:lanyjie@yahoo.com">lanyjie@yahoo.com</a>> wrote:<br>> Hi Matt,<br>> =======================================================<br>> From: Matt Joiner <<a ymailto="mailto:anacrolix@gmail.com" href="mailto:anacrolix@gmail.com">anacrolix@gmail.com</a>><br>><br>> The "trailing \" workaround is nonobvious. Wrapping in () is noisy and<br>> already heavily used by
other syntactical structures.<br>> =======================================================<br>> How about only require indentation<br>> to freely break lines? Here is an example:<br>> x = firstpart * secondpart #line breaks here<br>> + anotherpart #continue by indentation<br>> + stillanother #continue on.<br>> #until here, another line starts by dedentation<br>> y = some_expression - another_one<br>> All this would be completely compatible with former code, while<br>> having almost free line breaking! Plus, indentation makes it pretty.<br>> Really hope Python can have freedom in breaking lines.<br>> Yingjie<br><br><br></div></div></div></body></html>