This PEP is much more reasonable.<br><span class="q"><br>Should ``\``-continuation be removed even inside strings? -1<br><br></span> 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>'''\<br> first line<br> second line\<br>'''<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> 2 +<br> 4)<br>f(x)<br><br>than:<br><br>a= 3+<br> 2+<br> 4<br>f(x)<br><br><br><div><span class="gmail_quote">On 5/4/07, <b class="gmail_sendername">Steven Bethard</b> <<a href="mailto:steven.bethard@gmail.com">
steven.bethard@gmail.com</a>> 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 <
<a href="mailto:jimjjewett@gmail.com">jimjjewett@gmail.com</a>> wrote:<br>> Open Issues<br>> ===========<br>><br>> + Should ``\``-continuation be removed even inside strings?<br><br>I'm a strong -1 on this PEP if ``\``-continuation is removed from
<br>inside triple-quoted strings. I'd hate to have to go from writing::<br><br> >>> textwrap.dedent('''\<br> ... foo<br> ... bar<br> ... ''')<br> 'foo\nbar\n'
<br><br>to writing::<br><br> >>> textwrap.dedent('''<br> ... foo<br> ... bar<br> ... '''[1:])<br> 'foo\nbar\n'<br><br>or maybe::<br><br> >>> textwrap.dedent
('''<br> ... foo<br> ... bar<br> ... '''.lstrip('\n'))<br> 'foo\nbar\n'<br><br>> + Should the continuation markers be expanced from just ([{}])<br>> 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. If someone can produce a patch, we can talk about<br>this.<br><br>
> + As a safety measure, should the continuation line be required<br>> to be more indented than the initial line?<br><br>Again, let's see a patch and we can talk about it.<br><br><br>STeVe<br>--<br>I'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> --- 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>