[Python-Dev] PEP 30XZ: Simplified Parsing (original) (raw)

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:

callsomething( d''' first part second line third line ''' )

Surely

from textwrap import dedent as d

is close enough?

-Mike



More information about the Python-Dev mailing list