Skip to content
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

feature/enhancement: support ob_next and ob_prev when built with Py_TRACE_REFS #115

Open
mqyhlkahu opened this issue Sep 29, 2023 · 1 comment

Comments

@mqyhlkahu
Copy link

Py_TRACE_REFS can be dynamically detected, because it defines sys.getobjects. At import time, you could check for sys.getobjects and define the extra members on the PyObject struct if it's present.

@mqyhlkahu
Copy link
Author

Note: if this feature is added, it would only apply to python version <= 3.12 -- ob_next and ob_prev are present in 3.12 (if built with the right option) but don't seem to be present in the main branch (3.13).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant