<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I personally used it when I was forced to use python 2 and
working mainly with unicode processing (It is particularly handy
when working with json for example) <br>
</p>
<br>
<div class="moz-cite-prefix">Le 16/12/2016 à 20:24, Guido van Rossum
a écrit :<br>
</div>
<blockquote
cite="mid:CAP7+vJ+9y8NkF+W+axJNdryXAy7WobeHUr81Hkv90U+QBuwLkg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>I am beginning to think that `from __future__ import
unicode_literals` does more harm than good. I don't recall
exactly why we introduced it, but with the restoration of
u"" literals in Python 3.3 we have a much better story for
writing straddling code that is unicode-correct.<br>
<br>
</div>
The problem is that the future import does both too much and
not enough -- it does too much because it changes literals to
unicode even in contexts where there is no benefit (e.g. the
argument to getattr() -- I still hear of code that breaks due
to this occasionally) and at the same time it doesn't do
anything for strings that you read from files, receive from
the network, or even from other files that don't use the
future import.<br>
<br>
</div>
I wonder if we can add an official note to the 2.7 docs
recommending against it? (And maybe even to the 3.x docs if it's
mentioned there at all.)<br clear="all">
<div>
<div>
<div><br>
-- <br>
<div class="gmail_signature">--Guido van Rossum (<a
moz-do-not-send="true"
href="http://python.org/%7Eguido" target="_blank">python.org/~guido</a>)</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Python-Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python-Dev@python.org">Python-Dev@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/options/python-dev/xavier.combelle%40gmail.com">https://mail.python.org/mailman/options/python-dev/xavier.combelle%40gmail.com</a>
</pre>
</blockquote>
<br>
</body>
</html>