[Python-checkins] Add a link to buffer protocol in bytearray() doc (GH-22675)

methane webhook-mailer at python.org
Mon Oct 26 01:26:43 EDT 2020


https://github.com/python/cpython/commit/0f25c231b3a024e358c3e55d9aba2f7bcc49630c
commit: 0f25c231b3a024e358c3e55d9aba2f7bcc49630c
branch: master
author: Antoine <43954001+awecx at users.noreply.github.com>
committer: methane <songofacandy at gmail.com>
date: 2020-10-26T14:26:34+09:00
summary:

Add a link to buffer protocol in bytearray() doc (GH-22675)

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index b33aa81c643dc..52a1512b5884f 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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.



More information about the Python-checkins mailing list