Skip to content
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

_PyModule_Clear missing in Python 3.13 #1649

Open
dpogue opened this issue Jan 5, 2025 · 1 comment
Open

_PyModule_Clear missing in Python 3.13 #1649

dpogue opened this issue Jan 5, 2025 · 1 comment

Comments

@dpogue
Copy link
Member

dpogue commented Jan 5, 2025

This was a private method that was removed from API visibility in Python 3.13.

This is currently used in cyPythonInterface.cpp to clear an existing module before re-registering it. It seems like an edge case (and we have an assert to catch that case when running in debug mode), but there doesn't seem to be any alternative in the public Python API.

@Hoikas
Copy link
Member

Hoikas commented Jan 5, 2025

Broken by the misguided python/cpython#106320. We basically need to reimplement _PyModule_ClearDict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants