summaryrefslogtreecommitdiffstats
path: root/Doc/library/array.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-11 14:23:38 (GMT)
committerGeorg Brandl <georg@python.org>2009-07-11 14:23:38 (GMT)
commitc91cbb948a223f0921300dc7b4f4b762b60420f3 (patch)
treec68883f093a517eab2e2521de91238ed92b8d81d /Doc/library/array.rst
parent23a3775cc8eef828edec75ed19bd630d03fb17a9 (diff)
downloadcpython-c91cbb948a223f0921300dc7b4f4b762b60420f3.zip
cpython-c91cbb948a223f0921300dc7b4f4b762b60420f3.tar.gz
cpython-c91cbb948a223f0921300dc7b4f4b762b60420f3.tar.bz2
array.array is actually a class.
Diffstat (limited to 'Doc/library/array.rst')
-rw-r--r--Doc/library/array.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index f48bf06..f7fb4e3 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -58,9 +58,9 @@ unsigned (long) integers.
The module defines the following type:
-.. function:: array(typecode[, initializer])
+.. class:: array(typecode[, initializer])
- Return a new array whose items are restricted by *typecode*, and initialized
+ A new array whose items are restricted by *typecode*, and initialized
from the optional *initializer* value, which must be a list, string, or iterable
over elements of the appropriate type.
@@ -75,7 +75,7 @@ The module defines the following type:
.. data:: ArrayType
- Obsolete alias for :func:`array`.
+ Obsolete alias for :class:`array`.
Array objects support the ordinary sequence operations of indexing, slicing,
concatenation, and multiplication. When using slice assignment, the assigned
@@ -85,7 +85,6 @@ and may be used wherever buffer objects are supported.
The following data items and methods are also supported:
-
.. attribute:: array.typecode
The typecode character used to create the array.