-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-103092: Adapt _ctypes's PyCStgDict type to heap type #103932
gh-103092: Adapt _ctypes's PyCStgDict type to heap type #103932
Conversation
This probably fails because of the dict hacks in |
Port PyCStgDict_Type to heap type.
11c91c9
to
56fd7e9
Compare
While I am still trying to figure out where it breaks, you may proceed to port other simpler types (if there are any). |
What's the status of this PR? Is it ready for review? It's still marked as a draft. |
PyCStgDict_traverse(StgDictObject *self, visitproc visit, void *arg) | ||
{ | ||
Py_VISIT(Py_TYPE(self)); | ||
Py_VISIT(self->proto); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe an extra visit to the proto
member? The CDataType_traverse
function in _ctypes.c has an explicit Py_VISIT(dict->proto)
.
I don't have the bandwidth to follow up this right now; abandoning this PR. |
Port PyCStgDict_Type to heap type.