[Python-Dev] str.dedent (original) (raw)

Guido van Rossum guido at python.org
Thu Sep 15 01:10:26 CEST 2005


From the sound of it, it's probably not worth endowing every string object with this method and hardcoding its implementation forever in C code. There are so many corner cases and variations on the functionality of "dedenting" a block that it's better to keep it as Python source code.

On 9/14/05, Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> wrote:

Hi,

some time ago, I proposed a string method "dedent" (which currently is in the textwrap module). The RFE is at http://python.org/sf/1237680. Any opinions? If I don't get positive comments, I'll reject it. Reinhold

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list