summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-28 10:26:01 (GMT)
committerGitHub <noreply@github.com>2022-10-28 10:26:01 (GMT)
commitc144e57b316e97a58ed5ad813c847fa8d2341dd7 (patch)
treed61f7661e62637b85ce7303b8d8c789330a6f979 /Doc/library
parent8cd21c2c5d34a5c5e857782da58d773f29ff8821 (diff)
downloadcpython-c144e57b316e97a58ed5ad813c847fa8d2341dd7.zip
cpython-c144e57b316e97a58ed5ad813c847fa8d2341dd7.tar.gz
cpython-c144e57b316e97a58ed5ad813c847fa8d2341dd7.tar.bz2
gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)
* gh-98657: [docs] `array.typecodes` is a module-level attribute * Update array.rst
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/array.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 975670c..95f1eaf 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 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