]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Move to method references for bytearray.take_bytes (#142053)
authorCody Maloney <cmaloney@users.noreply.github.com>
Fri, 28 Nov 2025 21:07:34 +0000 (13:07 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Nov 2025 21:07:34 +0000 (22:07 +0100)
Doc/library/stdtypes.rst
Misc/NEWS.d/3.15.0a2.rst
Misc/NEWS.d/next/Library/2025-11-22-16-33-48.gh-issue-141863.4PLhnv.rst
Misc/NEWS.d/next/Library/2025-11-25-22-54-07.gh-issue-141968.vg3AMJ.rst
Misc/NEWS.d/next/Library/2025-11-25-23-22-46.gh-issue-141968.R1sHnJ.rst
Misc/NEWS.d/next/Library/2025-11-25-23-35-07.gh-issue-141968.b3Gscp.rst

index a87898dadf4af690d716999de92e1604dcc11d0d..8b896011734df5942024d4bc139bcbe8e59fc92b 100644 (file)
@@ -3240,7 +3240,7 @@ objects.
 
          See the :ref:`What's New <whatsnew315-bytearray-take-bytes>` entry for
          common code patterns which can be optimized with
-         :func:`bytearray.take_bytes`.
+         :meth:`bytearray.take_bytes`.
 
 Since bytearray objects are sequences of integers (akin to a list), for a
 bytearray object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be
index ba439d49517addfc5323a73fe85175cf023707ce..4e3a62b0f4a7d2aa6c3101aeb4d68896acc98aef 100644 (file)
@@ -1451,7 +1451,7 @@ under no memory.
 .. section: Core and Builtins
 
 Update :class:`bytearray` to use a :class:`bytes` under the hood as its
-buffer and add :func:`bytearray.take_bytes` to take it out.
+buffer and add :meth:`bytearray.take_bytes` to take it out.
 
 ..
 
index 910ab98c950f9ee5957793b101a75e1882b2ffe5..585774ba2cb66b1ec432ba4e08b39779fccf43b5 100644 (file)
@@ -1,2 +1,2 @@
-Update :ref:`asyncio-streams` to use :func:`bytearray.take_bytes` for a over
+Update :ref:`asyncio-streams` to use :meth:`bytearray.take_bytes` for a over
 10% performance improvement on pyperformance asyncio_tcp benchmark.
index 8492cb35d5bc762edcdbc40dbdd7ed13667b9118..4c89902813f6a6ca8de02ffc6fcd11b80f2b33a2 100644 (file)
@@ -1,2 +1,2 @@
 Remove a data copy from :func:`base64.b32decode` and
-:func:`base64.b32encode` by using :func:`bytearray.take_bytes`.
+:func:`base64.b32encode` by using :meth:`bytearray.take_bytes`.
index 16b9ad78c3cd3fada2401f6e6f3ea253c0ac3410..eca0ac4c8e60149a7013d3658a907b2dff3b7638 100644 (file)
@@ -1,2 +1,2 @@
 Remove data copy from :func:`wave.Wave_read.readframes` and
-:func:`wave.Wave_write.writeframes` by using :func:`bytearray.take_bytes`.
+:func:`wave.Wave_write.writeframes` by using :meth:`bytearray.take_bytes`.
index 32658be5b2f632209fbfa51b60bee3891f00ad8c..50124e8b19609f98c63fbd49320270e0f102bb90 100644 (file)
@@ -1,2 +1,2 @@
 Remove data copy from :mod:`encodings.idna` :meth:`~codecs.Codec.encode` and
-:meth:`~codecs.IncrementalEncoder.encode` by using :func:`bytearray.take_bytes`.
+:meth:`~codecs.IncrementalEncoder.encode` by using :meth:`bytearray.take_bytes`.