Skip to content

Conversation

@VanshAgarwal24036
Copy link
Contributor

@VanshAgarwal24036 VanshAgarwal24036 commented Jan 21, 2026

It fixes a crash in ctypes that occur when a deprecated POINTER(str) type was used in argtypes.

When such a pointer type was encountered during argument conversion, ctypes would hit an internal assertion and abort the interpreter in debug builds.
This PR replaces the assertion with proper error handling and raises a Python exception instead.

@VanshAgarwal24036

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant