With Python3 I have re-opened stdout in binary mode. After that when I print("Hello")
it tells me that I need to use a bytes-like object. Fair enough, it's in binary mode now.
However when I do this:
print(b"Some bytes")
I still get this error:
TypeError: a bytes-like object is required, not 'str'
What's up with that?