My question is whether or not there are situations in which
sys.stdout.write()
is preferable to
After finishing developing a script the other day, I uploaded it to a unix server. All my debug messages used print
statements, and these do not appear on a server log.
This is a case where you may need sys.stdout.write
instead.