Skip to content

Use Py_IS_TYPE on abi3 & python 3.15+#5977

Open
bschoenmaeckers wants to merge 1 commit intoPyO3:mainfrom
bschoenmaeckers:Py_IS_TYPE_ABI3
Open

Use Py_IS_TYPE on abi3 & python 3.15+#5977
bschoenmaeckers wants to merge 1 commit intoPyO3:mainfrom
bschoenmaeckers:Py_IS_TYPE_ABI3

Conversation

@bschoenmaeckers
Copy link
Copy Markdown
Member

Avoid raw pointer comparison on ABI3 when Py_IS_TYPE is available.

xref RustPython/RustPython#7562

Copy link
Copy Markdown
Contributor

@ngoldbaum ngoldbaum left a comment

Choose a reason for hiding this comment

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

This also follows how CPython spells these check macros.

I seriously doubt adding one extra function call that can be inlined matters for non-limited API builds, but I'll defer to @davidhewitt to give this a look and hit the merge button.

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.

3 participants