Is this new behavior intentional? :: >>> sys.stderr.write("thisisatest\n") thisisatest 12 Here is the reason for it: >>> help(sys.stderr.write) Help on method write in module io: write(self, s: str) method of io.TextIOWrapper instance Thank you, Alan Isaac