Commit 7441b57
committed
gh-142083: Document the 'w' type code in the array.array docstring
The type code table in the array.array docstring did not list the 'w'
type code, although array.typecodes has included it since 3.13. The
other points raised in the issue concerned the 'u' type code, which no
longer exists: it was removed, together with its note about narrow and
wide builds, in gh-80480. What remains is the request to say that 'w'
holds Py_UCS4, so the new row names that C type, which is also what the
"C Type" column of the table in Doc/library/array.rst gives for 'w'.
Add a test asserting that the table lists exactly the supported type
codes and that the minimum size it gives for each of them is one the
implementation really meets.1 parent 6893326 commit 7441b57
3 files changed
Lines changed: 23 additions & 0 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Documentation
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
113 | 132 | | |
114 | 133 | | |
115 | 134 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
| 3112 | + | |
3112 | 3113 | | |
3113 | 3114 | | |
3114 | 3115 | | |
| |||
0 commit comments