[Python-checkins] r68705 - python/trunk/Doc/reference/datamodel.rst

benjamin.peterson python-checkins at python.org
Sun Jan 18 02:28:09 CET 2009


Author: benjamin.peterson
Date: Sun Jan 18 02:28:09 2009
New Revision: 68705

Log:
bytearrays are mutable sequences

Modified:
   python/trunk/Doc/reference/datamodel.rst

Modified: python/trunk/Doc/reference/datamodel.rst
==============================================================================
--- python/trunk/Doc/reference/datamodel.rst	(original)
+++ python/trunk/Doc/reference/datamodel.rst	Sun Jan 18 02:28:09 2009
@@ -368,12 +368,20 @@
          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


More information about the Python-checkins mailing list