mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
#16337: merge with 3.3.
This commit is contained in:
commit
acf1754bf3
1 changed files with 1 additions and 1 deletions
|
@ -2164,7 +2164,7 @@ they are always created by calling the constructor:
|
||||||
* Creating an empty instance: ``bytearray()``
|
* Creating an empty instance: ``bytearray()``
|
||||||
* Creating a zero-filled instance with a given length: ``bytearray(10)``
|
* Creating a zero-filled instance with a given length: ``bytearray(10)``
|
||||||
* From an iterable of integers: ``bytearray(range(20))``
|
* From an iterable of integers: ``bytearray(range(20))``
|
||||||
* Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!)``
|
* Copying existing binary data via the buffer protocol: ``bytearray(b'Hi!')``
|
||||||
|
|
||||||
As bytearray objects are mutable, they support the
|
As bytearray objects are mutable, they support the
|
||||||
:ref:`mutable <typesseq-mutable>` sequence operations in addition to the
|
:ref:`mutable <typesseq-mutable>` sequence operations in addition to the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue