summaryrefslogtreecommitdiffstats
path: root/Doc/library/array.rst
diff options
context:
space:
mode:
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 78c433d..2235f08 100644
--- a/Doc/library/array.rst
+++ b/Doc/library/array.rst
@@ -52,9 +52,9 @@ through the :attr:`itemsize` attribute.
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, object
supporting the buffer interface, or iterable over elements of the
appropriate type.
@@ -67,7 +67,7 @@ The module defines the following type:
.. data:: ArrayType
- Obsolete alias for :func:`array`.
+ Obsolete alias for :class:`array`.
.. data:: typecodes
@@ -81,7 +81,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.