You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docstring of array.array misses 'w' type info and mentions wide/narrow builds #142083
it doesn't mention that since 3.3 the 'u' type is deprecated and 'w' should be used.
it doesn't mention that 'u' type since 3.9 corresponds to wchar_t of C compiler used (so usually 2 byte UTF-16 on Windows, 4 byte UTF-32 elsewhere), instead of to narrow/wide Python build.
it doesn't mention the newer 'w' type that is Python's own Py_UCS4 4 byte UTF-32.
The documentation at https://docs.python.org/3/library/array.html doesn't have these issues, only the docstring (that is shown in help(array.array) in the REPL) does. This is a mismatch between documentation and docstring.
Activity
gh-142083: Document the 'w' type code in the array.array docstring (#…
pythongh-142083: Document the 'w' type code in the array.array docstr…
[3.15] gh-142083: Document the 'w' type code in the array.array docst…
[3.14] gh-142083: Document the 'w' type code in the array.array docst…