Basically my question is the title,
so for example in shell:
>>> import sys
>>> sys.stdout.write('Hello')
Hello5
(same with stderr
)
But from a file:
import sys
sys.stdout.write('Hello')
Output:
Hello
(same with stderr
)
So why is this happening???