[Python-Dev] PEP 30XZ: Simplified Parsing (original) (raw)
Mike Klaas mike.klaas at gmail.com
Fri May 4 22:45:00 CEST 2007
- Previous message: [Python-Dev] PEP 30XZ: Simplified Parsing
- Next message: [Python-Dev] PEP 30XZ: Simplified Parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 30XZ: Simplified Parsing
- Next message: [Python-Dev] PEP 30XZ: Simplified Parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]