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-37451: remove redundant code in _testcapimodule.c #14483
Conversation
Hi. Thank you for the pull request. I'm not an expert, therefore, would you mind telling me why that is redundant? Just for learning. Thank you :) |
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.
I don't see why this code should be removed. It seems to be used for testing that PyUnicode_FromWideChar
can deal with NULL-terminated and non-NULL-terminated buffers.
So at least, this PR needs better justification.
Jeroen, thanks for review.
So I think the else statement in _testcapimodule.c is redundant. |
Hi, Michele. Discussing process over result ;). I have answered upstairs. |
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.
OK, I see what you mean now. But given that it took me a while to understand why your PR was correct, I'm not convinced that we should merge it as-is.
it's a small change and don't effect any functions, if core teams think it is not necessary, pls help me close this PR. |
Thanks for the contribution and I could understand your logic. It actually is from my point of view but it's quite tiny and doesn't affect anything so I think it's not necessary to change it. |
https://bugs.python.org/issue37451