-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctypes: wrong exception message in docs #99266
Comments
Note that the better error message from the
cpython/Modules/_ctypes/cfield.c Lines 1114 to 1137 in 2eee9d9
cpython/Modules/_ctypes/_ctypes.c Lines 2208 to 2274 in 2eee9d9
Actually, I don't see why it doesn't first check for an |
As per the docs,
|
@eryksun I followed your suggestion of saving and restoring the exception. I opened a PR. |
Co-authored-by: Kumar Aditya <[email protected]>
Documentation
The ctypes docs say that the message of the
ArgumentError
for the presented example should be as follows:In fact, it looks like this:
I will prepare a PR.
The text was updated successfully, but these errors were encountered: