[Python-3000] [Python-Dev] PEP 30XZ: Simplified Parsing
Steven Bethard
steven.bethard at gmail.com
Wed May 2 19:00:01 CEST 2007
On 5/2/07, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> Implicit string concatenation is massively useful for creating long
> strings in a readable way though:
>
> call_something("first part\n"
> "second line\n"
> "third line\n")
>
> I find it an elegant way of building strings and would be sad to see it
> go. Adding trailing '+' signs is ugly.
You'll still have textwrap.dedent::
call_something(dedent('''\
first part
second line
third line
'''))
And using textwrap.dedent, you don't have to remember to add the \n at
the end of every line.
STeVe
--
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the Python-3000
mailing list