stderr writting before stdout

Souvik Dutta souvik.viksou at gmail.com
Sun May 24 00:27:03 EDT 2020


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?


More information about the Python-list mailing list