Re: [docs] Behavior of ZipFile with file-like object and BufferedWriter. (issue 20699)

https://bugs.python.org/review/20699/diff/13586/Doc/library/io.rst File Doc/library/io.rst (right): https://bugs.python.org/review/20699/diff/13586/Doc/library/io.rst#newcode23... Doc/library/io.rst:233: :class:`bytearray` is required. Text I/O classes work with On 2015/02/12 00:26:47, storchaka wrote:
Actually writable bytes-like object is required.
I am making a new patch that will hopefully document this for RawIOBase. Should I do the same for BufferedIOBase.readinto() and related methods as well? BufferedReader seems to work that way at least. https://bugs.python.org/review/20699/diff/13586/Doc/library/io.rst#newcode40... Doc/library/io.rst:403: be less than ``len(b)``, depending on specifics of the underlying raw On 2015/02/12 00:26:47, storchaka wrote:
For general bytes-like object len(b) is not the number of bytes.
Will try to fix this for all mentions, including readinto() etc. https://bugs.python.org/review/20699/
participants (1)
-
vadmium+py@gmail.com