<div class="gmail_quote">On Tue, Dec 13, 2011 at 7:30 PM, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net">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="im">On Tue, 13 Dec 2011 14:02:45 -0500<br>
PJ Eby <<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>> wrote:<br>
><br>
> Among other things, it means that:<br>
><br>
> * There's only one codebase<br>
> * If the conversion isn't perfect, you only have to fix it once<br>
> * Line numbers are the same<br>
> * There's no conversion step slowing down development<br>
><br>
> So, I expect that if the approach is at all viable, it'll quickly become<br>
> the One Obvious Way to do it.<br>
<br>
</div>Well, with all due respect, this is hand-waving. Sure, if it's<br>
viable, then fine. The question is if it's "viable", precisely. That<br>
depends on which project we're talking about.<br></blockquote><div><br></div><div>What I'm saying is that it has many characteristics that are desirable for people who need to support Python 2 and 3 - which is likely the most common use case for library developers.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> In effect, 2to3 is a "purity" solution, but<br>
> six is more like a "practicality" solution.<br>
<br>
</div>This sounds like your personal interpretation. I see nothing "pure" in<br>
2to3.<br></blockquote><div><br></div><div>It's "pure" in being optimized for a world where you just stop using Python 2 one day, and start using 3 the next, without any crossover support.</div><div><br></div>
<div>As someone else pointed out, this is a more common case for application developers than for library developers. However, until the libraries are ported, it's harder for the app developers to port their apps.</div>
<div><br></div><div>Anyway, if you're supporting both 2 and 3, a common code base offers many attractions, so if it can be done, it will.</div></div>