Skip to content

Commit df4790c

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 36cb0c8 commit df4790c

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
@@ -150,8 +150,8 @@ are always available. They are listed here in alphabetical order.
150150
* If it is an *integer*, the array will have that size and will be
151151
initialized with null bytes.
152152

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

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

0 commit comments

Comments
 (0)