Linux.com: Python 3 makes a big break

Terry Reedy tjreedy at udel.edu
Sat Oct 18 15:30:23 EDT 2008


http://www.linux.com/feature/150399
Interesting article with one minor incompleteness.
"For instance, the print statement got turned into a print function; you 
must now put parentheses around what you want to print to the screen. 
The change allows developers to work with print in a more flexible and 
uniform way. If someone needs to replace the print function with some 
other action, it can be done with a universal search and replace, rather 
than rewriting each print statement by hand."

Even easier, print as a function can be replaced simply by defining a 
new version with the same name.  No search/replace is needed.  And 
reversion to the built-in only requires commenting out the replacement.




More information about the Python-list mailing list