Martin Panter added the comment: New patch that I plan to commit:
* Use bytes instead of str * bytes, bytearray or memoryview for readinto() methods * bytes or memoryview for write() methods * Added single “Changed in version 2.7” notice under the IOBase class (rather than every version of readinto and write) * Since we only require 1-D byte array memoryviews, I resurrected the len(b) text * Removed outdated XXX comment about supporting buffer API, since bytearray and memoryview of bytes is now all that is required ---------- stage: patch review -> commit review Added file: http://bugs.python.org/file43301/bytes-like-param.py2.v9.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20699> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com