Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tyingq
· 4y ago · 0 comments
The file=sys.stderr came with Python 3. Because of that, I tend to see sys.stderr.write("foo\n") more often.
Comments
[–]
jerdfelt
4y ago
Python 2 was even more terse with it's print statement
print >>sys.stderr, "foo"