This PEP is much more reasonable.<br><span class="q"><br>Should ``\``-continuation be removed even inside strings? -1<br><br></span>&nbsp;Backslash continuation in strings is used a lot.. especially in strings that must not start with a newline but are written in the following format for clarity:
<br>&#39;&#39;&#39;\<br>&nbsp; first line<br>&nbsp; second line\<br>&#39;&#39;&#39;<br><br>Should the continuation markers be expanced from just ([{}]) to include lines ending with an operator?<br><br>-1<br><br>I think that the following is much more clear:
<br><br>a=(3 +<br>&nbsp;&nbsp;&nbsp;&nbsp; 2 +<br>&nbsp;&nbsp;&nbsp;&nbsp; 4)<br>f(x)<br><br>than:<br><br>a= 3+<br>&nbsp;&nbsp;&nbsp;&nbsp; 2+<br>&nbsp;&nbsp;&nbsp;&nbsp; 4<br>f(x)<br><br><br><div><span class="gmail_quote">On 5/4/07, <b class="gmail_sendername">Steven Bethard</b> &lt;<a href="mailto:steven.bethard@gmail.com">
steven.bethard@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">[cc -python-dev]<br><br>On 5/4/07, Jim Jewett &lt;
<a href="mailto:jimjjewett@gmail.com">jimjjewett@gmail.com</a>&gt; wrote:<br>&gt; Open Issues<br>&gt; ===========<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; + Should ``\``-continuation be removed even inside strings?<br><br>I&#39;m a strong -1 on this PEP if ``\``-continuation is removed from
<br>inside triple-quoted strings. I&#39;d hate to have to go from writing::<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt; textwrap.dedent(&#39;&#39;&#39;\<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foo<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bar<br>&nbsp;&nbsp;&nbsp;&nbsp;... &#39;&#39;&#39;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&#39;foo\nbar\n&#39;
<br><br>to writing::<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt; textwrap.dedent(&#39;&#39;&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp; foo<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp; bar<br>&nbsp;&nbsp;&nbsp;&nbsp;... &#39;&#39;&#39;[1:])<br>&nbsp;&nbsp;&nbsp;&nbsp;&#39;foo\nbar\n&#39;<br><br>or maybe::<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt; textwrap.dedent
(&#39;&#39;&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp; foo<br>&nbsp;&nbsp;&nbsp;&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp; bar<br>&nbsp;&nbsp;&nbsp;&nbsp;... &#39;&#39;&#39;.lstrip(&#39;\n&#39;))<br>&nbsp;&nbsp;&nbsp;&nbsp;&#39;foo\nbar\n&#39;<br><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; + Should the continuation markers be expanced from just ([{}])<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to include lines ending with an operator?
<br><br>I think the only way to answer this is to have someone actually<br>implement it, so that we can evaluate the complexity of the<br>implementation.&nbsp;&nbsp;If someone can produce a patch, we can talk about<br>this.<br><br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; + As a safety measure, should the continuation line be required<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to be more indented than the initial line?<br><br>Again, let&#39;s see a patch and we can talk about it.<br><br><br>STeVe<br>--<br>I&#39;m not *in*-sane. Indeed, I am so far *out* of sane that you appear a
<br>tiny blip on the distant coast of sanity.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--- Bucky Katt, Get Fuzzy<br>_______________________________________________<br>Python-3000 mailing list<br><a href="mailto:Python-3000@python.org">Python-3000@python.org
</a><br><a href="http://mail.python.org/mailman/listinfo/python-3000">http://mail.python.org/mailman/listinfo/python-3000</a><br>Unsubscribe: <a href="http://mail.python.org/mailman/options/python-3000/nevillegrech%40gmail.com">
http://mail.python.org/mailman/options/python-3000/nevillegrech%40gmail.com</a><br></blockquote></div><br>