-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-1635741: Convert socket.SocketType to heap type, and establish global state #24175
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
bpo-1635741: Convert socket.SocketType to heap type, and establish global state #24175
Conversation
@vstinner Do I need to create |
@shihai1991 / @corona10: In commit b41d9aa (clean up first part of init function), I assume the following: |
You are right :).
You are right, the object's |
So, that means I only need to employ a strong ref to protect the object while calling Thank you ! :) |
AFAICS, @shihai1991, there are ref three scenarios for extension modules:
Did I miss anything? |
No, I have no other info to supply :) |
This PR is stale because it has been open for 30 days with no activity. |
Prepare the socket module for multi-phase init by converting socket.SocketType
to heap type, establish a global module state, and clean up the first part of the
init function.
https://bugs.python.org/issue1635741