> I don't think we need two algorithms here. I'm +1 to add str.dedent() which mirroring only inspect.cleandoc().
I withdraw this. If we add str.dedent(), it must not be optimized for triple-quote literal.
Auto dedenting is very nice to have. It can be different from inspect.cleandoc().
We may able to cleandoc() automatically, even without `from __future__`. This can be different from str.dedent() or auto dedenting.
We already have a separate issue for docstring. And auto dedenting will needs PEP. How about focus on str.dedent() and change the issue title?