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

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

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

wants to merge 2 commits into from

Conversation

@vstinner
Copy link
Contributor

@vstinner vstinner commented Dec 9, 2020

Py_TYPE() is available since Python 2.6.

Py_TYPE() is available since Python 2.6.
@vstinner
Copy link
Contributor Author

@vstinner vstinner commented Dec 9, 2020

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

@vstinner
Copy link
Contributor Author

@vstinner vstinner commented Dec 9, 2020

See also #330

@vstinner
Copy link
Contributor Author

@vstinner vstinner commented Dec 16, 2020

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

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

Successfully merging this pull request may close these issues.

None yet

1 participant