From 2e6732a0509f7a5b5355599283bd42073dfda8ff Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 26 Oct 2022 19:05:00 +0300 Subject: [PATCH 1/2] gh-98657: [docs] `array.typecodes` is a module-level attribute --- Doc/library/array.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Doc/library/array.rst b/Doc/library/array.rst index 975670cc81a202..2ab00150b76a84 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -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 items: + + +.. 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 From 63c14f38ac36c3a6ebe377120e634edb1e21f225 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 28 Oct 2022 12:57:05 +0300 Subject: [PATCH 2/2] Update array.rst --- Doc/library/array.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/array.rst b/Doc/library/array.rst index 2ab00150b76a84..95f1eaf401b052 100644 --- a/Doc/library/array.rst +++ b/Doc/library/array.rst @@ -62,7 +62,7 @@ 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 items: +The module defines the following item: .. data:: typecodes