bpo-1635741: Convert socket.SocketType to heap type, and establish global state#24175
bpo-1635741: Convert socket.SocketType to heap type, and establish global state#24175erlend-aasland wants to merge 3 commits intopython:masterfrom
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