[Python-ideas] Idea for new multi-line triple quote literal

Marco Buttu mbuttu at oa-cagliari.inaf.it
Sat Jul 13 10:45:37 CEST 2013


On 07/01/2013 03:12 PM, Steven D'Aprano wrote:
>> "dedent" is a weird word, maybe "unindent" would be better?
>
> The de- prefix is a standard English prefix meaning removal, negation 
> or reversal:
>
> http://dictionary.reference.com/browse/de-
>
>
> Neologism or not, I think that dedent is sufficiently understandable 
> and widespread that there's no need to deprecate it in favour of 
> "outdent". It's being used in the F# and Ruby communities, as well as 
> Python:
>
> http://en.wiktionary.org/wiki/dedent
>
> https://github.com/cespare/ruby-dedent

Hi all, this is my first message here :)
I use Python since almost 7 years, and I discovered textwrap.dedent() 
right now, by following this thread.
So in my case if yesterday I had seen there was a method str.dedent(), I 
should have looked at the
documentation to know its meaning, but if I had seen str.unindent(), I 
shouldn't have looked at the doc at all,
because the meaning appears to me very clear.
Maybe this comes either from my poor English or from my lacks in Python 
(or both...), but maybe not, because
looking for "unindent indentation" , "dedent indentation" or "deindent 
indentation" on Google, we can see people
use the word "unindent" and not dedent or deindent.

+ 1 for unindent()

http://en.wiktionary.org/wiki/unindent

-- 
Marco Buttu

INAF Osservatorio Astronomico di Cagliari
Loc. Poggio dei Pini, Strada 54 - 09012 Capoterra (CA) - Italy
Phone: +39 070 71180255
Email: mbuttu at oa-cagliari.inaf.it



More information about the Python-ideas mailing list