-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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_extend_error prints exception class string representation instead of exception class name #92119
Labels
Comments
JelleZijlstra
pushed a commit
that referenced
this issue
Nov 8, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 8, 2022
…resentation (pythonGH-98302) (cherry picked from commit b9dedfe) Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 8, 2022
…resentation (pythonGH-98302) (cherry picked from commit b9dedfe) Co-authored-by: Kamil Turek <kamil.turek@hotmail.com>
kamilturek
added a commit
to kamilturek/cpython
that referenced
this issue
Nov 13, 2022
…resentation (python#98302) (cherry picked from commit b9dedfe)
JelleZijlstra
pushed a commit
that referenced
this issue
Nov 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
Expected behavior is to print exception name ("TypeError") as stated in documentation:
https://github.com/python/cpython/blob/main/Doc/library/ctypes.rst#specifying-the-required-argument-types-function-prototypes
Possible solution is to use PyType_GetName instead of PyObject_Str at
cpython/Modules/_ctypes/callproc.c
Line 1019 in ad5e852
but I'm not sure how to draw it up correctly.
The text was updated successfully, but these errors were encountered: