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
gh-91266: refactor bytearray strip methods #32096
Conversation
1a70230
to
755c495
Compare
Test Results:
415 tests OK.
8 tests failed:
test_asyncio test_bdb test_distutils test_embed test_idle
test_ossaudiodev test_peg_generator test_venv
Looks like none relevant.
The Python-visible API probably shouldn't change. |
@sweeneyde Can you review again? Thanks |
We should typically be pretty conservative about refactoring PRs, but since this eliminates 45 lines, I think it makes sense.
@sweeneyde Thanks. Should I add a new entry for this? |
Sure, yes: better to err on the side of documenting everything. |
Misc/NEWS.d/next/Core and Builtins/2022-04-13-07-14-30.gh-issue-91266.6Vkzzt.rst
Outdated
Show resolved
Hide resolved
…e-91266.6Vkzzt.rst Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
The bytearray strip, lstrip and rstrip methods contain duplicated code. This PR refactors the three implementations to use common code.
https://bugs.python.org/issue47110