[Python-ideas] Implicit String Concatenation
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 19 00:02:50 CEST 2007
Ron Adam wrote:
>> Can you
>> give an example where an auto-dedented docstring
>> would give an undesirable result?
>
> You didn't specify doc strings earlier, Just triple quoted strings in
> general.
Triple quoted strings in general is what I had in mind.
I was replying to something that seemed to imply that
it would cause trouble with docstrings, without being
very clear about what the trouble was.
> Dedenting triple quoted strings in general would cause some problems in
> (python 2.x) with existing gui interfaces that use triple quoted strings
> to define their text.
I conjecture that in all such cases, the existing code
is already dedenting the string itself. I still haven't
seen a real case where a piece of code actually needs
the extra indentation.
--
Greg
More information about the Python-ideas
mailing list