mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Docs: Move to method references for bytearray.take_bytes (#142053)
Some checks are pending
Tests / Windows MSI (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / iOS (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
Some checks are pending
Tests / Windows MSI (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / iOS (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
This commit is contained in:
parent
fa9519f8b2
commit
d2d2e92110
6 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
..
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue