Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Misc/NEWS.d/3.15.0a2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

..

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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`.
Original file line number Diff line number Diff line change
@@ -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`.
Original file line number Diff line number Diff line change
@@ -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`.
Loading