Serhiy Storchaka <storch...@gmail.com> added the comment: Reply to Roger's emailed answer to my Rietveld comment.
> On 07/11/2012 11:10 AM, storch...@gmail.com wrote: > > http://bugs.python.org/review/7163/diff/4367/Lib/idlelib/OutputWindow.py > > File Lib/idlelib/OutputWindow.py (right): > > > > http://bugs.python.org/review/7163/diff/4367/Lib/idlelib/OutputWindow.py#newcode43 > > Lib/idlelib/OutputWindow.py:43: return len(s) > > write() should return count of bytes if argument is bytes. > Only strings should be passed into the write method in 3.3. The code > for decoding bytes is a historical artifact that should be removed. You > can witness this evolution by using hgtk datamine. We can ask the author. Martin, why OutputWindow.write accepts bytes in a724279fc931? Should it be deleted if it is deprecated artifact or should OutputWindow.write return bytes count for bytes if it will return character count for string? > On 2.7, byte counts (AFAIK) are not returned for sys.stdout.write. On Python2 sys.stdout.write does not returns any count. ---------- nosy: +loewis _______________________________________ 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