[Python-ideas] Idea for new multi-line triple quote literal
Michael Foord
fuzzyman at gmail.com
Sat Jul 13 11:40:44 CEST 2013
On 13 July 2013 11:45, Marco Buttu <mbuttu at oa-cagliari.inaf.it> wrote:
> 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-<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<http://en.wiktionary.org/wiki/dedent>
>>
>> https://github.com/cespare/**ruby-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<http://en.wiktionary.org/wiki/unindent>
Interestingly dedent has an entry on wiktionary, with a note that its
primary use is Python:
http://en.wiktionary.org/wiki/dedent
So whilst the meaning is obvious to native speakers, it can hardly be said
to be a term in common usage. (The wiktionary entry suggests it is a
synonym for "outdent".)
Michael
>
>
> --
> 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
>
>
> ______________________________**_________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/**mailman/listinfo/python-ideas<http://mail.python.org/mailman/listinfo/python-ideas>
>
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130713/9ef80f5f/attachment.html>
More information about the Python-ideas
mailing list