Skip to content

Commit d2d2e92

Browse files
authored
Docs: Move to method references for bytearray.take_bytes (#142053)
1 parent fa9519f commit d2d2e92

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3240,7 +3240,7 @@ objects.
32403240

32413241
See the :ref:`What's New <whatsnew315-bytearray-take-bytes>` entry for
32423242
common code patterns which can be optimized with
3243-
:func:`bytearray.take_bytes`.
3243+
:meth:`bytearray.take_bytes`.
32443244

32453245
Since bytearray objects are sequences of integers (akin to a list), for a
32463246
bytearray object *b*, ``b[0]`` will be an integer, while ``b[0:1]`` will be

Misc/NEWS.d/3.15.0a2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ under no memory.
14511451
.. section: Core and Builtins
14521452
14531453
Update :class:`bytearray` to use a :class:`bytes` under the hood as its
1454-
buffer and add :func:`bytearray.take_bytes` to take it out.
1454+
buffer and add :meth:`bytearray.take_bytes` to take it out.
14551455

14561456
..
14571457
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Update :ref:`asyncio-streams` to use :func:`bytearray.take_bytes` for a over
1+
Update :ref:`asyncio-streams` to use :meth:`bytearray.take_bytes` for a over
22
10% performance improvement on pyperformance asyncio_tcp benchmark.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Remove a data copy from :func:`base64.b32decode` and
2-
:func:`base64.b32encode` by using :func:`bytearray.take_bytes`.
2+
:func:`base64.b32encode` by using :meth:`bytearray.take_bytes`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Remove data copy from :func:`wave.Wave_read.readframes` and
2-
:func:`wave.Wave_write.writeframes` by using :func:`bytearray.take_bytes`.
2+
:func:`wave.Wave_write.writeframes` by using :meth:`bytearray.take_bytes`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Remove data copy from :mod:`encodings.idna` :meth:`~codecs.Codec.encode` and
2-
:meth:`~codecs.IncrementalEncoder.encode` by using :func:`bytearray.take_bytes`.
2+
:meth:`~codecs.IncrementalEncoder.encode` by using :meth:`bytearray.take_bytes`.

0 commit comments

Comments
 (0)