-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Closed
Copy link
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixeseasyextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
This issue is suitable for a first-time contributor.
The 'w'
typecode is supported but the error message does not mention it:
>>> array('x')
Traceback (most recent call last):
File "<python-input-5>", line 1, in <module>
array('x')
~~~~~^^^^^
ValueError: bad typecode (must be b, B, u, h, H, i, I, l, L, q, Q, f or d)
We should add 'w'
to the list. This is the relevant part of the code that should be updated:
Lines 2875 to 2877 in 6163841
PyErr_SetString(PyExc_ValueError, | |
"bad typecode (must be b, B, u, h, H, i, I, l, L, q, Q, f or d)"); | |
return NULL; |
Happy to help if you have any questions!
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixeseasyextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error