2 ms·
The file=sys.stderr came with Python 3. Because of that, I tend to see sys.stderr.write("foo\n") more often.
by tyingq 4y ago
The file=sys.stderr came with Python 3. Because of that, I tend to see sys.stderr.write("foo\n") more often.
- jerdfelt 4y agoPython 2 was even more terse with it's print statement print >>sys.stderr, "foo"