> That change was to add support for str8, a type that no longer exists.
str8 was renamed to bytes in 0d462d789b18.
> The general design guideline apparently is that sys.stdout in IDLE
> should work the same as the interactive shell.
>
> Since the interactive shell doesn't support bytes (and gives a TypeError),
> so should IDLE.
Now OutputWindow is not sys.stdout and sys.stdout has own argument
check. If someone uses OutputWindow directly (not sys.stdout) as output
_binary_ file (because OutputWindow supports binary output), then he
would be expected that write will return the number of written bytes.
Can we break those expectations?