[Python-Dev] Spreading the Python 3 religion

R. David Murray rdmurray at bitdance.com
Thu Mar 1 18:16:06 CET 2012


On Thu, 01 Mar 2012 17:24:31 +0100, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Thu, 1 Mar 2012 11:24:19 -0500
> Barry Warsaw <barry at python.org> wrote:
> > 
> > I really do think that to the extent that you can do that kind of thing, you
> > may end up with essentially Python 3 support without even realizing it. :)
> 
> That's unlikely. Twisted processes bytes data a lot, and the bytes
> indexing behaviour of 3.x is a chore for porting.

The dodges you have to use work fine in python2 as well, though, so
I think Barry's point stands, even if it does make the python2 code a
bit uglier...but not as bad as the 2.5 exception hacks.  Still, I'll
grant that it would be a harder sell to upstream than the changes Barry
mentioned.  On the other hand, it's not like the code will get
*prettier* once you drop Python2 support :(.

--David


More information about the Python-Dev mailing list