Is print thread safe? That is, if I have two threads that each call print, say:
print "spam spam spam" # thread 1
print "eggs eggs eggs" # thread 2
I don't care which line prints first, but I do care if the two lines are mixed in together, something like this:
spam spaeggs eggs m seggspams
Does print perform its own locking to prevent this?