Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-103092: Adapt _ctypes's PyCStgDict type to heap type#103932
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
erlend-aasland commentedApr 27, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This probably fails because of the dict hacks in |
Port PyCStgDict_Type to heap type.
11c91c9
to56fd7e9
Comparekumaraditya303 commentedMay 30, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 theproto
member? TheCDataType_traverse
function in _ctypes.c has an explicitPy_VISIT(dict->proto)
.
I don't have the bandwidth to follow up this right now; abandoning this PR. |
Uh oh!
There was an error while loading.Please reload this page.
Port PyCStgDict_Type to heap type.