what's the big deal for print()

Terry Reedy tjreedy at udel.edu
Fri Jun 24 23:54:39 EDT 2011


On 6/24/2011 10:39 PM, pipehappy wrote:
> Hi,
>
> Why people want print() instead of print str? That's not a big deal
> and the old choice is more natural. Anyone has some clue?

print as a function instead of a statement is consistent with input as a 
function, can be overridden with custom versions, can be passed to 
functions as an argument, and can have options passed as arguments 
instead of with terrible syntax hacks.

-- 
Terry Jan Reedy




More information about the Python-list mailing list