Re:Ask HN: Anyone using Python 3 in production?
by algorias on Saturday June 26, 2010 @10:38PM
(#1464746)
All that is just syntactic sugar.
print "comma prevents a newline from being printed",
print >> sys.stderr, "Any file object can be used"
The change to a function is purely for consistency, not functionality.
Re:Ask HN: Anyone using Python 3 in production?
by gometro33 on Saturday June 26, 2010 @08:00PM
(#1464544)
Being part of __future__, is print() slated for release in 2.7 or is it strictly a 3.x feature?
sep is the separator between arguments, so you can do something like:
end is the value at the end of the line (useful, for example, if you want to print without a newline at the end).file lets you specify a file to print to, so for example you can do file=sys.stderr to print to stderr instead of stdout.