-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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-40170: Convert PyIter_Check macro to a function #24548
bpo-40170: Convert PyIter_Check macro to a function #24548
Conversation
@vstinner Would you mind reviewing this? |
ec6687a
to
7c03394
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For macOS which doesn't use LTO compiler optimization, we added private static inline functions of some "Check" functions. But I don't think that it's worth it here (I don't think that the function is commonly called in "hot code").
Misc/NEWS.d/next/Core and Builtins/2021-02-15-15-06-43.bpo-40170.ZYeSii.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
CI is done; PTAL, @vstinner. |
Merged, thanks. |
|
…to "C API" section
The macro accessed the
PyTypeObject.tp_iternext
member directly."Swap" macro variant with the function in order to hide implementation details.
(A function already existed, but it was not exposed.)
https://bugs.python.org/issue40170