From: Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 26 Oct 2020 05:59:46 +0000 (-0700) Subject: Add a link to buffer protocol in bytearray() doc (GH-22675) X-Git-Tag: v3.9.1rc1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df4790c071ea47ea3d5e0697dadc78105cf7f280;p=thirdparty%2FPython%2Fcpython.git Add a link to buffer protocol in bytearray() doc (GH-22675) (cherry picked from commit 0f25c231b3a024e358c3e55d9aba2f7bcc49630c) Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com> --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index ca6dabfcddda..2a54ce5baf63 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -150,8 +150,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 `, + 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.