summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-27 13:17:27 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-27 13:17:27 (GMT)
commit29c8bf6f06752743bb4583f45428d153fd443aca (patch)
treef3d47d32b36a58c10cc460c7b860adb579d88e5d /Doc/reference
parent65fdff977d13eea1bb5ed25d0dddbd5181ca27fe (diff)
downloadcpython-29c8bf6f06752743bb4583f45428d153fd443aca.zip
cpython-29c8bf6f06752743bb4583f45428d153fd443aca.tar.gz
cpython-29c8bf6f06752743bb4583f45428d153fd443aca.tar.bz2
Merged revisions 68705-68706 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68705 | benjamin.peterson | 2009-01-18 02:28:09 +0100 (So, 18 Jan 2009) | 1 line bytearrays are mutable sequences ........ r68706 | benjamin.peterson | 2009-01-18 02:28:46 +0100 (So, 18 Jan 2009) | 1 line fix grammar ........
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index ea0f869..7c52694 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -360,7 +360,7 @@ Sequences
slicing notations can be used as the target of assignment and :keyword:`del`
(delete) statements.
- There is currently a single intrinsic mutable sequence type:
+ There are currently two intrinsic mutable sequence types:
Lists
.. index:: object: list
@@ -369,6 +369,14 @@ 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