diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 18:06:34 +0300 |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-05-04 18:06:34 +0300 |
| commit | c228e96726129e20519a2016075fca3dc9fdcd30 (patch) | |
| tree | bf6fca50fa7f3fd47fdfe20fbed1baf2d65f2585 /Doc/library/array.rst | |
| parent | 28faf03d4474d184b30a8013c70845b6600d456d (diff) | |
| download | cpython-git-c228e96726129e20519a2016075fca3dc9fdcd30.tar.gz | |
#16518: use "bytes-like object" throughout the docs.
Diffstat (limited to 'Doc/library/array.rst')
| -rw-r--r-- | Doc/library/array.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst index 8f6943a240..752bad5773 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -73,8 +73,8 @@ The module defines the following type: .. 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 @@ Array objects support the ordinary sequence operations of indexing, slicing, 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: |
