A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-May/072986.html below:

[Python-Dev] PEP 30XZ: Simplified Parsing

[Python-Dev] PEP 30XZ: Simplified Parsing [Python-Dev] PEP 30XZ: Simplified ParsingMike 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-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4