Skip to content

GH-104787: use managed weakrefs in _asyncio #106516

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

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Jul 7, 2023

@gvanrossum
Copy link
Member

I'm not sure who is an expert in these APIs. Maybe @markshannon can review?

@kumaraditya303
Copy link
Contributor Author

I'm not sure who is an expert in these APIs.

Not much to review, see

static PyType_Spec HeapCTypeWithManagedWeakref_spec = {
"_testcapi.HeapCTypeWithManagedWeakref",
sizeof(PyObject),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_MANAGED_WEAKREF,
HeapCTypeWithManagedWeakref_slots
};
as example of usage

@kumaraditya303 kumaraditya303 merged commit 8fb6edf into python:main Jul 10, 2023
@kumaraditya303 kumaraditya303 deleted the weakref branch July 10, 2023 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage skip news topic-asyncio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants