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: Clean up modules and headers to use Py_IS_TYPE #18521

Merged
merged 3 commits into from Feb 17, 2020

Conversation

@corona10
Copy link
Member

corona10 commented Feb 16, 2020

@corona10 corona10 requested a review from vstinner Feb 16, 2020
Copy link
Member

vstinner left a comment

Please don't use git rebase, just add a commit, to ease review ;-) This PR is long to review.

@@ -302,7 +302,7 @@ type_mro_modified(PyTypeObject *type, PyObject *bases) {
each subclass when their mro is recursively updated.
*/
Py_ssize_t i, n;
int custom = (Py_TYPE(type) != &PyType_Type);
int custom = Py_IS_TYPE(type, &PyType_Type);

This comment has been minimized.

Copy link
@vstinner

vstinner Feb 17, 2020

Member

This one looks wrong.

This comment has been minimized.

Copy link
@corona10

corona10 Feb 17, 2020

Author Member

Oh.. good catch!

This comment has been minimized.

Copy link
@vstinner

vstinner Feb 17, 2020

Member

I know that you made this mistake on purpose. Just to check that I really review your PRs! :-)

This comment has been minimized.

Copy link
@corona10

corona10 Feb 17, 2020

Author Member

lol :)

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Feb 17, 2020

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Member

vstinner left a comment

LGTM.

@vstinner vstinner merged commit 1b55b65 into python:master Feb 17, 2020
7 of 8 checks passed
7 of 8 checks passed
Windows (x86)
Details
Windows (x64)
Details
macOS macOS
Details
Ubuntu
Details
Azure Pipelines PR #20200217.17 succeeded with issues
Details
bedevere/issue-number Issue number 39573 found
Details
bedevere/news "skip news" label found
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.