[Python-checkins] r75757 - in python/branches/release26-maint: Doc/reference/datamodel.rst

georg.brandl python-checkins at python.org
Tue Oct 27 14:17:27 CET 2009


Author: georg.brandl
Date: Tue Oct 27 14:17:27 2009
New Revision: 75757

Log:
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
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Doc/reference/datamodel.rst

Modified: python/branches/release26-maint/Doc/reference/datamodel.rst
==============================================================================
--- python/branches/release26-maint/Doc/reference/datamodel.rst	(original)
+++ python/branches/release26-maint/Doc/reference/datamodel.rst	Tue Oct 27 14:17:27 2009
@@ -360,7 +360,7 @@
       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 @@
          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


More information about the Python-checkins mailing list