diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-02-01 05:48:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 05:48:19 (GMT) |
commit | 85cc5d0e5dd6cfa44d3e2782cca33d1f7f58231e (patch) | |
tree | ad240c729960d4ecb36e3da5fb9da349eb9f3ef5 /Doc | |
parent | 5e498072dcb7fe4980ffee45631fd2f65665ec49 (diff) | |
download | cpython-85cc5d0e5dd6cfa44d3e2782cca33d1f7f58231e.zip cpython-85cc5d0e5dd6cfa44d3e2782cca33d1f7f58231e.tar.gz cpython-85cc5d0e5dd6cfa44d3e2782cca33d1f7f58231e.tar.bz2 |
gh-98657: [docs] `array.typecodes` is a module-level attribute (GH-98729)
* 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>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/array.rst | 11 |
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 |