[Python-Dev] PEP 214, extended print statement
Guido van Rossum
guido@python.org
Fri, 18 Aug 2000 15:20:06 -0400
I'm still reading my email off-line on the plane. I've now read PEP 214 and
think I'll reverse my opinion: it's okay. Barry, check it in! (And change
the SF PM status to 'Accepted'.) I think I'll start using it for error
messages: errors should go to stderr, but it's often inconvenient, so in
minor scripts instead of doing
sys.stderr.write("Error: can't open %s\n" % filename)
I often write
print "Error: can't open", filename
which is incorrect but more convenient. I can now start using
print >>sys.stderr, "Error: can't open", filename
--Guido