[Python-Dev] PEP 30XZ: Simplified Parsing
Nick Craig-Wood
nick at craig-wood.com
Tue May 8 00:26:46 CEST 2007
Mike Klaas <mike.klaas at gmail.com> wrote:
> 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?
Apart from it happening at run time rather than compile time.
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-Dev
mailing list