Skip to content

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

Merged
methane merged 2 commits into
python:masterfrom
shihai1991:bpo_40898_py_visit
Jun 7, 2020
Merged

bpo-40898: Remove redundant if statements in tp_traverse#20692
methane merged 2 commits into
python:masterfrom
shihai1991:bpo_40898_py_visit

Conversation

@shihai1991

@shihai1991 shihai1991 commented Jun 7, 2020

Copy link
Copy Markdown
Member

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

https://bugs.python.org/issue40898

@remilapeyre remilapeyre left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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?

@shihai1991

Copy link
Copy Markdown
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
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