Misleading wikipedia article on Python 3?

Istvan Albert istvan.albert at gmail.com
Wed Aug 8 10:26:08 EDT 2007


On Aug 6, 6:11 am, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:

> Why on earth did they make this change?  It just seems gratuitous.

Having print a function (with parameters) makes is very easy to modify
where the output goes.

Say you want to have some prints go to one particular file, today you
cannot easily do it, you have to either do a regex based search/
replace or fiddle with the sys.stdout etc. both have substantial
drawbacks.

A solution would be writing the code with a logging function to begin
with, alas many times that is out of one's hand. I wished print was a
function great many times. I bet Guido has had similar experiences,
note that attempt to keep print in the current form but have it print
to a file ... with that crazy syntax, print >>f, ... alas that did not
solve anything

It is time to fix it for good.

i.





More information about the Python-list mailing list