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

bpo-39573: Make Py_IS_TYPE take const args. Add _PyObject_CAST_CONST. #18799

Merged
merged 1 commit into from
Mar 6, 2020
Merged

bpo-39573: Make Py_IS_TYPE take const args. Add _PyObject_CAST_CONST. #18799

merged 1 commit into from
Mar 6, 2020

Conversation

petdance
Copy link
Contributor

@petdance petdance commented Mar 6, 2020

As the final part of the Py_IS_TYPE conversion:

  • Make Py_IS_TYPE take const arguments
  • Make new macro _PyObject_CAST_CONST

https://bugs.python.org/issue39573

@petdance
Copy link
Contributor Author

petdance commented Mar 6, 2020

Attn: @vstinner

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I checked for compiler warnings on Windows, macOS and Linux (clang and GCC). I didn't notice any new warning.

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

Successfully merging this pull request may close these issues.

4 participants