Martin Panter added the comment: One other difference between 2 and 3 is that Python 3 has two kinds of “binary” files. In most cases, a subset of the BufferedIOBase API is assumed, which does “exact” reads and writes. I understand this is how Python 2 files worked. But there is also RawIOBase, which does short reads and writes.
Perhaps it is worth clarifying if the file objects have to be the “buffered” kind or not. In my patches for Issue 24291 and Issue 26721, I resorted to wording like The “write” method . . . should write each chunk in full, like BufferedIOBase. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29746> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com