bpo-36292: Mark unreachable code as such#12333
Conversation
vstinner
left a comment
There was a problem hiding this comment.
You are modiying deadcode, it doesn't deserve a NEWS entry :-)
There was a problem hiding this comment.
This is deadcode: long_bitwise() is a private function only called with '&', '^' or '|'. So I would prefer to use "Py_UNREACHABLE();" here.
There was a problem hiding this comment.
Ditto: use "Py_UNREACHABLE();" instead. No need to both with references. It's deadcode.
|
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 |
b75a16b to
96ad058
Compare
|
The news entry was deleted and |
| default: | ||
| PyErr_BadArgument(); | ||
| return NULL; | ||
| /* Unreachable code */ |
There was a problem hiding this comment.
I concur with @terryjreedy: the comment (here and above) is redudant, please remove it.
https://bugs.python.org/issue36292