<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 July 2013 11:45, Marco Buttu <span dir="ltr"><<a href="mailto:mbuttu@oa-cagliari.inaf.it" target="_blank">mbuttu@oa-cagliari.inaf.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 07/01/2013 03:12 PM, Steven D'Aprano wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
"dedent" is a weird word, maybe "unindent" would be better?<br>
</blockquote>
<br>
The de- prefix is a standard English prefix meaning removal, negation or reversal:<br>
<br>
<a href="http://dictionary.reference.com/browse/de-" target="_blank">http://dictionary.reference.<u></u>com/browse/de-</a><br>
<br>
<br>
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:<br>
<br>
<a href="http://en.wiktionary.org/wiki/dedent" target="_blank">http://en.wiktionary.org/wiki/<u></u>dedent</a><br>
<br>
<a href="https://github.com/cespare/ruby-dedent" target="_blank">https://github.com/cespare/<u></u>ruby-dedent</a><br>
</blockquote>
<br></div>
Hi all, this is my first message here :)<br>
I use Python since almost 7 years, and I discovered textwrap.dedent() right now, by following this thread.<br>
So in my case if yesterday I had seen there was a method str.dedent(), I should have looked at the<br>
documentation to know its meaning, but if I had seen str.unindent(), I shouldn't have looked at the doc at all,<br>
because the meaning appears to me very clear.<br>
Maybe this comes either from my poor English or from my lacks in Python (or both...), but maybe not, because<br>
looking for "unindent indentation" , "dedent indentation" or "deindent indentation" on Google, we can see people<br>
use the word "unindent" and not dedent or deindent.<br>
<br>
+ 1 for unindent()<br>
<br>
<a href="http://en.wiktionary.org/wiki/unindent" target="_blank">http://en.wiktionary.org/wiki/<u></u>unindent</a></blockquote><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">Interestingly dedent has an entry on wiktionary, with a note that its primary use is Python:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> <a href="http://en.wiktionary.org/wiki/dedent" target="_blank">http://en.wiktionary.org/wiki/dedent</a><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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".)</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Michael</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
<br>
-- <br>
Marco Buttu<br>
<br>
INAF Osservatorio Astronomico di Cagliari<br>
Loc. Poggio dei Pini, Strada 54 - 09012 Capoterra (CA) - Italy<br>
Phone: <a href="tel:%2B39%20070%2071180255" value="+3907071180255" target="_blank">+39 070 71180255</a><br>
Email: <a href="mailto:mbuttu@oa-cagliari.inaf.it" target="_blank">mbuttu@oa-cagliari.inaf.it</a></font></span><div class=""><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><pre cols="72"><a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br><br>May you do good and not evil<br>May you find forgiveness for yourself and forgive others<br>
May you share freely, never taking more than you give.<br>-- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a></pre>
</div></div>