Improve the error message for invalid typecodes in multiprocessing.{Array,Value}
#133017
Labels
stdlib
Python modules in the Lib dir
topic-multiprocessing
type-feature
A feature request or enhancement
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
More discussion: #132504 (comment)
This is the current message which is not very clear (it comes from
ctypes.sizeof
):I propose we change it to:
This is modeled after the error message in
array.array
which is more informative:(A
ValueError
seems like a more appropriate option for multiprocessing as well, but that'd be a breaking change)Note that,
multiprocessing.Array
(andValue
) does not support the 'w' typecode whilearray.array
does.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
#132504 (comment)
Linked PRs
multiprocessing.{Array,Value}
#133252The text was updated successfully, but these errors were encountered: