[Python-checkins] gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)
nanjekyejoannah
webhook-mailer at python.org
Fri Oct 28 06:26:07 EDT 2022
https://github.com/python/cpython/commit/c144e57b316e97a58ed5ad813c847fa8d2341dd7
commit: c144e57b316e97a58ed5ad813c847fa8d2341dd7
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: nanjekyejoannah <33177550+nanjekyejoannah at users.noreply.github.com>
date: 2022-10-28T12:26:01+02:00
summary:
gh-98657: [docs] `array.typecodes` is a module-level attribute (#98729)
* gh-98657: [docs] `array.typecodes` is a module-level attribute
* Update array.rst
files:
M Doc/library/array.rst
diff --git a/Doc/library/array.rst b/Doc/library/array.rst
index 975670cc81a2..95f1eaf401b0 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
More information about the Python-checkins
mailing list