Python 3 Changes Breaks Backwards Compatibility
Dec 23, 2008, 10:31 (1 Talkback[s])
(Other stories by Cesar Otero)
Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers
[ Thanks to An Anonymous Reader for
this link. ]
"This article--the first in a series on Python
3--covers the new print() function, input(), changes to
input/output (I/O), the new bytes data type, changes to strings and
string formatting, and finally, changes to the built-in dict type.
This article is meant for programmers who are already familiar with
Python and are curious about the changes but don't want to wade
through the long list of Python Enhancement Proposals (PEPs).
(Links to the PEPs are available in Resources below.)
"The new print() function
"You'll have to retrain your fingers to stop typing print
"hello" and start typing print("hello"), because print is now a
function, not a statement. I know, it's painful. Every Python
programmer I know--as soon as they install version 3 and get the
error "incorrect syntax"--screams in agony. I know the extra two
characters are annoying; I know this will break backwards
compatibility. But there are advantages."