Skip to content

CPython 3.13 Compat and Asyncore Removal #1244

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kheina
Copy link

@kheina kheina commented May 23, 2025

Per Python3.13 Release Notes:

Remove the PyEval_ThreadsInitialized() function, deprecated in Python 3.9. Since Python 3.7, Py_Initialize() always creates the GIL: calling PyEval_InitThreads() does nothing and PyEval_ThreadsInitialized() always returns non-zero. (Contributed by Victor Stinner in gh-105182.)

Removes the use of PyEval_ThreadsInitialized() and PyEval_InitThreads() if python version is >= 3.7 (written by @daskol in 27969fc)

Additionally, removes existing references to asyncore in cassandra/cluster.py tests/integration/long/test_ipv6.py tests/unit/io/test_asyncioreactor.py (per @medaminezghal in #1242 (comment)

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

Successfully merging this pull request may close these issues.

2 participants