[Python-3000] [Python-Dev] updated PEP3125, Remove Backslash Continuation

Steven Bethard steven.bethard at gmail.com
Fri May 4 21:30:15 CEST 2007

[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
    ... ''')

to writing::

    >>> textwrap.dedent('''
    ...     foo
    ...     bar
    ... '''[1:])

or maybe::

    >>> textwrap.dedent('''
    ...     foo
    ...     bar
    ... '''.lstrip('\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

>     + 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.

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

More information about the Python-3000 mailing list