]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a link to buffer protocol in bytearray() doc (GH-22675)
authorAntoine <43954001+awecx@users.noreply.github.com>
Mon, 26 Oct 2020 05:26:34 +0000 (06:26 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 05:26:34 +0000 (14:26 +0900)
Doc/library/functions.rst

index b33aa81c643dc380696d220eebce0aa043ee952e..52a1512b5884fe511b4c22f6e20ede5ac56f920f 100644 (file)
@@ -164,8 +164,8 @@ are always available.  They are listed here in alphabetical order.
    * If it is an *integer*, the array will have that size and will be
      initialized with null bytes.
 
-   * If it is an object conforming to the *buffer* interface, a read-only buffer
-     of the object will be used to initialize the bytes array.
+   * If it is an object conforming to the :ref:`buffer interface <bufferobjects>`,
+     a read-only buffer of the object will be used to initialize the bytes array.
 
    * If it is an *iterable*, it must be an iterable of integers in the range
      ``0 <= x < 256``, which are used as the initial contents of the array.