diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-01-18 01:28:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-01-18 01:28:09 (GMT) |
commit | f1a4069481e7a69431fab79b974769434130da6e (patch) | |
tree | 53eda88751afbd8f34ba263bbad834001496b6b8 /Doc/reference | |
parent | 2407ac9a4b79eeb7dff10255cd970455ef69b923 (diff) | |
download | cpython-f1a4069481e7a69431fab79b974769434130da6e.zip cpython-f1a4069481e7a69431fab79b974769434130da6e.tar.gz cpython-f1a4069481e7a69431fab79b974769434130da6e.tar.bz2 |
bytearrays are mutable sequences
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 068f0fd..3d7e0be 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -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 |