[Python-ideas] triple-quoted strings and indendation
Oleg Broytman
phd at phdru.name
Thu May 12 12:15:57 CEST 2011
On Thu, May 12, 2011 at 09:24:53AM +0200, Matthias Lehmann wrote:
> > PEP 295 http://www.python.org/dev/peps/pep-0295/ was rejected in 2002.
> Oh, thanks for the link, I was almost sure that something like that
> was proposed before - sorry I didn't thoroughly search the PEPs
> beforehand.
>
> I still think that indendation of triple-quoted strings is a wart of
> the language - a small one, but still a wart. But it's been
> discussed and rejected before - and probably with good reasons.
My opinion is:
-- I don't think it's a wart;
-- If it's a wart it's quite small;
-- It's very easy to fix by calling dedent();
-- Fixing it by changing the language means to change the language for
very little gain; changing the language must not be done lightly.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list