diff Doc/library/array.rst @ 83605:003e4eb92683 3.3

#16518: use "bytes-like object" throughout the docs.
author Ezio Melotti <ezio.melotti@gmail.com>
date Sat, 04 May 2013 18:06:34 +0300
parents 9c7515e29219
children aafa11c1dd61
line wrap: on
line diff
--- a/Doc/library/array.rst	Sat May 04 17:46:23 2013 +0300
+++ b/Doc/library/array.rst	Sat May 04 18:06:34 2013 +0300
@@ -73,8 +73,8 @@
 .. class:: array(typecode[, initializer])
 
    A new array whose items are restricted by *typecode*, and initialized
-   from the optional *initializer* value, which must be a list, object
-   supporting the buffer interface, or iterable over elements of the
+   from the optional *initializer* value, which must be a list, a
+   :term:`bytes-like object`, or iterable over elements of the
    appropriate type.
 
    If given a list or string, the initializer is passed to the new array's
@@ -91,7 +91,7 @@
 concatenation, and multiplication.  When using slice assignment, the assigned
 value must be an array object with the same type code; in all other cases,
 :exc:`TypeError` is raised. Array objects also implement the buffer interface,
-and may be used wherever buffer objects are supported.
+and may be used wherever :term:`bytes-like object`\ s are supported.
 
 The following data items and methods are also supported: