]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#16518: Bring error messages in harmony with docs ("bytes-like object")
authorR David Murray <rdmurray@bitdance.com>
Sun, 5 Oct 2014 15:47:01 +0000 (11:47 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sun, 5 Oct 2014 15:47:01 +0000 (11:47 -0400)
commit861470c83607a4312d3c65bce3e18414b965e586
tree48088d67e50d8599b00498c17b5c8b7a35b482f8
parentd577cea8ab0d929c40de93947dd68b9709607b35
#16518: Bring error messages in harmony with docs ("bytes-like object")

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.)
Doc/whatsnew/3.5.rst
Lib/test/test_socket.py
Misc/NEWS
Modules/_operator.c
Objects/abstract.c
Objects/bytearrayobject.c
Objects/bytes_methods.c
Objects/bytesobject.c
Objects/longobject.c
Objects/memoryobject.c
Python/getargs.c