[mdlug] Python 3.0 to be backwards incompatible

David Relson relson at osagesoftware.com
Sun Feb 3 22:20:44 EST 2008


On Sun, 3 Feb 2008 17:33:04 -0800
Kristian Erik Hermansen wrote:

> On Feb 3, 2008 5:27 PM, David Relson <relson at osagesoftware.com> wrote:
> > Have you any links indicating planned changes going into Python
> > 3 ???
> >
> > Given a while I'm sure I could come up with more than a few things
> > that annoy me in the current Python.  It'd be interesting to see if
> > the plans address any of my thoughts.
> 
> A friend sent along some info to me, so I don't have links.  But, from
> what I know, print will not be a statement.  print() is now a function
> -- which will probably break a lot of code :-)  There are lots of
> other changes in unicode to support it properly.  There are many
> architectural changes that will probably break old code too.  And
> perhaps we will see better threading/multiprocessing support...
> -- 
> Kristian Erik Hermansen
> "Know something about everything and everything about something."

I did a quick search for "Python 3000".  Indeed, print changes from a
statement to a function.  Also of interest, sort() changes from
"in-place" to returning an object.

For example, instead of

   keys = dictionary.keys()
   keys.sort( )
   for key in keys:

Python will allow

   for key in dictionary.keys().sort():

(or something like that).

David



More information about the mdlug mailing list