bpo-39573: Add Py_IS_TYPE macro by corona10 · Pull Request #18488 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to modify Argument Clinic in a separated PR, but use this PR to update PyXXX_CheckExact() macros. See: nascheme@c156300
You should credit Neil if you reuse his commit: add Author: Neil Schemenauer <nas-github@arctrix.com> at the end of your commit message.
corona10
changed the title
bpo-39573: Add Py_IS_TYPE macro
[WIP] bpo-39573: Add Py_IS_TYPE macro
corona10
changed the title
[WIP] bpo-39573: Add Py_IS_TYPE macro
bpo-39573: Add Py_IS_TYPE macro
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Equivalent to: Py_TYPE(o) == type. | ||
|
|
||
| .. versionadded:: 3.9 | ||
|
|
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sure :)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, @brandtbucher wrote PR #18496. I will ask him to fix the typo there. You can ignore this special request ;-)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it ;-)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

