osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stderr writting before stdout


Hi,
Is there any precedence or priority order by which sys.stderr.write() and
sys.stdout.write() works. Because when running the below code...

import sys
sys.stdout.write("Writting")
sys.stderr.write("No errors \n")

No errors is written (displayed) first and writting is written later. Why
does this happen?