You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide PyExpat_CheckCompatibility to check C API compatibility #141297
In #141259, I provide a recipe for checking compatibility of the Expat API with the one that was linked for Python. However, the recipe is quite complex and I think we should provide a minimal function that checks the simple compatibility (magic number, Expat versions and structure size).
The idea is that consumers call this function but they should set the exception themselves because they might want to have other checks that are only compatible afterwards. We can also expose it as a private unstable function in case we need to change it later.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Activity
picnixz commentedon Mar 28, 2026
See PR for the rationale of closing the issue.