Skip to content

bpo-40898: Remove redundant if statements in tp_traverse #20692

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

Merged
merged 2 commits into from
Jun 7, 2020

Conversation

shihai1991
Copy link
Member

@shihai1991 shihai1991 commented Jun 7, 2020

Remove redundant if statements of tp_traverse in itertools, _functools, _io, _overlapped.

https://bugs.python.org/issue40898

Copy link
Contributor

@remilapeyre remilapeyre left a comment

Choose a reason for hiding this comment

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

@shihai1991
Copy link
Member Author

Hi @shihai1991, thanks for the PR!

Can you fix the two occurrences at https://github.com/python/cpython/blob/master/Modules/overlapped.c#L1507-L1512?

Good catch, thanks.

@methane methane merged commit 47a23fc into python:master Jun 7, 2020
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
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.

5 participants