<div dir="ltr">2to3 is poorly named. With different fixers it is a fine tool for converting 2-only code to 2-and-3 straddling code. Even when using six, you need to do things like convert print statements to print() calls with future import, use 'as' in except clauses, and so on.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 30, 2014 at 1:47 PM, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net" target="_blank">solipsis@pitrou.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, 28 May 2014 15:26:38 -0700<br>
Glyph Lefkowitz <<a href="mailto:glyph@twistedmatrix.com">glyph@twistedmatrix.com</a>> wrote:<br>
> Backport 'yield from' to allow people to use Tulip and Tulip-compatible code, and to facilitate the development of Tulip-friendly libraries and a Tulip ecosystem.  A robust Tulip ecosystem requires the participation of people who are not yet using Python 3.<br>


<br>
</div>I was wondering whether you were trolling or not on this one.<br>
>From a quality assurance point of view, adding major features to a<br>
bugfix branch is extremely destructive, so I'm strongly -1 on it.<br>
<div class=""><br>
> Get rid of 2to3. Particularly, of any discussion of using 2to3 in the documentation.  More than one very experienced, well-known Python developer in this discussion has told me that they thought 2to3 was the blessed way to port their code, and it's no surprise that they think so, given that the first technique <<a href="https://docs.python.org/3/howto/pyporting.html" target="_blank">https://docs.python.org/3/howto/pyporting.html</a>> mentions is still 2to3.<br>


<br>
</div>2to3 is certainly fine if you are porting to 3.x without looking to<br>
keep your code 2.x-compatible. Until there's a better alternative, of<br>
course.<br>
So what we should do is better explain the choice (if you want to port<br>
your code to 3.x, use 2to3; if you want to maintain dual-compatible<br>
code, use six or something similar).<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Antoine.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div>