Serhiy Storchaka <storch...@gmail.com> added the comment: > 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7163> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com