Skip to content

Use Py_TYPE() rather than using PyObject.ob_type#329

Closed
vstinner wants to merge 2 commits into
boostorg:developfrom
vstinner:py_type
Closed

Use Py_TYPE() rather than using PyObject.ob_type#329
vstinner wants to merge 2 commits into
boostorg:developfrom
vstinner:py_type

Conversation

@vstinner

@vstinner vstinner commented Dec 9, 2020

Copy link
Copy Markdown
Contributor

Py_TYPE() is available since Python 2.6.

Py_TYPE() is available since Python 2.6.
@vstinner

vstinner commented Dec 9, 2020

Copy link
Copy Markdown
Contributor Author

PR created by the "Py_TYPE" operation of the upgrade_pythoncapi.py script of https://github.com/pythoncapi/pythoncapi_compat

@vstinner

vstinner commented Dec 9, 2020

Copy link
Copy Markdown
Contributor Author

See also #330

@vstinner

Copy link
Copy Markdown
Contributor Author

Ah, the change was wrong on tests: x.get() should be used to get the PyObject*.

@vstinner

vstinner commented Nov 9, 2022

Copy link
Copy Markdown
Contributor Author

No feedback in 2 years. I just close my PR.

@vstinner vstinner closed this Nov 9, 2022
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.

1 participant