Skip to content

Commit 77a9ef1

Browse files
Add a link to buffer protocol in bytearray() doc (GH-22675)
(cherry picked from commit 0f25c23) Co-authored-by: Antoine <[email protected]>
1 parent 8e980ec commit 77a9ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ are always available. They are listed here in alphabetical order.
151151
* If it is an *integer*, the array will have that size and will be
152152
initialized with null bytes.
153153

154-
* If it is an object conforming to the *buffer* interface, a read-only buffer
155-
of the object will be used to initialize the bytes array.
154+
* If it is an object conforming to the :ref:`buffer interface <bufferobjects>`,
155+
a read-only buffer of the object will be used to initialize the bytes array.
156156

157157
* If it is an *iterable*, it must be an iterable of integers in the range
158158
``0 <= x < 256``, which are used as the initial contents of the array.

0 commit comments

Comments
 (0)