Skip to content

Use Py_REFCNT instead of ->ob_refcnt#475

Merged
stefanseefeld merged 2 commits into
boostorg:developfrom
pilleye:pilleye/py_refcnt
Mar 10, 2025
Merged

Use Py_REFCNT instead of ->ob_refcnt#475
stefanseefeld merged 2 commits into
boostorg:developfrom
pilleye:pilleye/py_refcnt

Conversation

@pilleye

@pilleye pilleye commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

Py_REFCNT was stabilized in 3.9, uses this official API instead of the ob_refcnt field that doesn't exist in the free-threaded build of 3.13.

Closes #464.

Py_REFCNT was stabilized in 3.9, uses this official API instead of the
`ob_refcnt` field that doesn't exist in the free-threaded build of 3.13.
@stefanseefeld

Copy link
Copy Markdown
Member

Please conditionalize the use of Py_REFCNT to allow for the code to work with older Python versions as well.

@pilleye

pilleye commented Mar 10, 2025

Copy link
Copy Markdown
Contributor Author

Fixed.

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

Successfully merging this pull request may close these issues.

error C2039: 'ob_refcnt': is not a member of '_object'

2 participants