• R David Murray's avatar
    #16518: Bring error messages in harmony with docs ("bytes-like object") · 861470c8
    R David Murray yazdı
    Some time ago we changed the docs to consistently use the term 'bytes-like
    object' in all the contexts where bytes, bytearray, memoryview, etc are used.
    This patch (by Ezio Melotti) completes that work by changing the error
    messages that previously reported that certain types did "not support the
    buffer interface" to instead say that a bytes-like object is required.  (The
    glossary entry for bytes-like object references the discussion of the buffer
    protocol in the docs.)
    861470c8
bytesobject.c 102 KB