]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98657: [docs] `array.typecodes` is a module-level attribute (GH-98729)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 1 Feb 2023 05:48:51 +0000 (21:48 -0800)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 05:48:51 +0000 (21:48 -0800)
* gh-98657: [docs] `array.typecodes` is a module-level attribute

* Update array.rst
(cherry picked from commit c144e57b316e97a58ed5ad813c847fa8d2341dd7)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/library/array.rst

index 975670cc81a2024c9744acb8998813bd2f76996a..95f1eaf401b05266d7f00176f629410fbefb2c35 100644 (file)
@@ -62,6 +62,14 @@ The actual representation of values is determined by the machine architecture
 (strictly speaking, by the C implementation).  The actual size can be accessed
 through the :attr:`itemsize` attribute.
 
+The module defines the following item:
+
+
+.. data:: typecodes
+
+   A string with all available type codes.
+
+
 The module defines the following type:
 
 
@@ -79,9 +87,6 @@ The module defines the following type:
 
    .. audit-event:: array.__new__ typecode,initializer array.array
 
-.. data:: typecodes
-
-   A string with all available type codes.
 
 Array objects support the ordinary sequence operations of indexing, slicing,
 concatenation, and multiplication.  When using slice assignment, the assigned