[Python-Dev] str.dedent
Raymond Hettinger
raymond.hettinger at verizon.net
Sat Nov 12 21:18:02 CET 2005
> The motivation
> is to be able to write multilined strings easily without damaging the
> visual indentation of the source code
That is somewhat misleading. We already have that ability. What is
being proposed is moving existing code to a different namespace. So the
motivation is really something like:
I want to write
s = s.dedent()
because it is too painful to write
s = textwrap.dedent(s)
Raymond
More information about the Python-Dev
mailing list