[Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing

Mike Klaas mike.klaas at gmail.com
Fri May 4 22:45:00 CEST 2007


On 5/4/07, Baptiste Carvello <baptiste13 at altern.org> wrote:

> maybe we could have a "dedent" literal that would remove the first newline and
> all indentation so that you can just write:
>
> call_something( d'''
>                  first part
>                  second line
>                  third line
>                  ''' )

Surely

from textwrap import dedent as d

is close enough?

-Mike


More information about the Python-3000 mailing list