[Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation (original) (raw)
Neville Grech Neville Grech nevillegrech at gmail.com
Fri May 4 22:51:19 CEST 2007
- Previous message: [Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation
- Next message: [Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This PEP is much more reasonable.
Should \
-continuation be removed even inside strings? -1
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:
'''
first line
second line
'''
Should the continuation markers be expanced from just ([{}]) to include lines ending with an operator?
-1
I think that the following is much more clear:
a=(3 + 2 + 4) f(x)
than:
a= 3+ 2+ 4 f(x)
On 5/4/07, Steven Bethard <steven.bethard at gmail.com> wrote:
[cc -python-dev] On 5/4/07, Jim Jewett <jimjjewett at gmail.com> wrote: > Open Issues > =========== > > + Should
\
-continuation be removed even inside strings? I'm a strong -1 on this PEP if\
-continuation is removed from inside triple-quoted strings. I'd hate to have to go from writing:: _>>> textwrap.dedent('''_ ... foo ... bar ... ''') 'foo\nbar\n' to writing:: >>> textwrap.dedent(''' ... foo ... bar ... '''[1:]) 'foo\nbar\n' or maybe:: >>> textwrap.dedent(''' ... foo ... bar ... '''.lstrip('\n')) 'foo\nbar\n' > + Should the continuation markers be expanced from just ([{}]) > to include lines ending with an operator? I think the only way to answer this is to have someone actually implement it, so that we can evaluate the complexity of the implementation. If someone can produce a patch, we can talk about this. > + As a safety measure, should the continuation line be required > to be more indented than the initial line? Again, let's see a patch and we can talk about it.STeVe -- I'm not in-sane. Indeed, I am so far out of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy
Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/nevillegrech%40gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-3000/attachments/20070504/7326cc0e/attachment.htm
- Previous message: [Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation
- Next message: [Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]