[Python-ideas] triple-quoted strings and indendation
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu May 12 00:22:27 CEST 2011
I have an idea of my own concerning multi-line strings.
Many of the problems of triple-quoted strings stem from
the fact that they're trying to be expressions that
sit in-line with the rest of the code. As we've seen
with all the attempts to fit multi-line function bodies
into lambdas, that doesn't really work.
So instead of a multi-line string *expression*, I think
we need a *statement*.
string adverisement:
| Python Egg Incubator!
|
| Hatch your eggs in half the time. Get yours
| today for only $39.99!
--
Greg
More information about the Python-ideas
mailing list