]> granicus.if.org Git - python/commitdiff
array.array is actually a class.
authorGeorg Brandl <georg@python.org>
Sat, 11 Jul 2009 14:23:38 +0000 (14:23 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 11 Jul 2009 14:23:38 +0000 (14:23 +0000)
Doc/library/array.rst

index f48bf06d9baa28ad773646b35abdbe997057f407..f7fb4e372c6e78f7da899afe23d7a3bfcab7ff87 100644 (file)
@@ -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.