mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bytearrays are mutable sequences
This commit is contained in:
parent
2407ac9a4b
commit
f1a4069481
1 changed files with 9 additions and 1 deletions
|
@ -368,12 +368,20 @@ Sequences
|
|||
comma-separated list of expressions in square brackets. (Note that there are no
|
||||
special cases needed to form lists of length 0 or 1.)
|
||||
|
||||
Byte Arrays
|
||||
.. index:: bytearray
|
||||
|
||||
A bytearray object is a mutable array. They are created by the built-in
|
||||
:func:`bytearray` constructor. Aside from being mutable (and hence
|
||||
unhashable), byte arrays otherwise provide the same interface and
|
||||
functionality as immutable bytes objects.
|
||||
|
||||
.. index:: module: array
|
||||
|
||||
The extension module :mod:`array` provides an additional example of a mutable
|
||||
sequence type.
|
||||
|
||||
Set types
|
||||
Set types../
|
||||
.. index::
|
||||
builtin: len
|
||||
object: set type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue