[Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation (original) (raw)
Steven Bethard steven.bethard at gmail.com
Fri May 4 21:30:15 CEST 2007
- Previous message: [Python-3000] updated PEP3125, Remove Backslash Continuation
- Next message: [Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-3000] updated PEP3125, Remove Backslash Continuation
- Next message: [Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]