-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-39939: Add str.removeprefix and str.removesuffix #18939
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
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0addc43
Add cutprefix and cutsuffix methods to str, bytes, and bytearray.
sweeneyde 3adb9fa
pep 7: lining up argumenets
sweeneyde a7a1bc8
Revert "pep 7: lining up argumenets"
sweeneyde fe18644
pep 7: line up arguemnts
sweeneyde ff8e3c6
pep 7: line up arguemnts
sweeneyde 5339a46
📜🤖 Added by blurb_it.
blurb-it[bot] cc85978
add UserString methods
sweeneyde 1442ffe
Merge branch 'cut_affix' of https://github.com/sweeneyde/cpython into…
sweeneyde 111b0f9
update count of objects in test_doctests
sweeneyde 8265e4d
restore clinic output
sweeneyde 7401b87
update count of objects in test_doctests
sweeneyde e550171
return original when bytes.cut***fix does not find match
sweeneyde 0a5d0a9
Document cutprefix and cutsuffix
sweeneyde a126438
fix doctest in docs
sweeneyde fbc4a50
Add credit
sweeneyde 3783dc3
make the empty affix case fast
sweeneyde 428e733
clarified: one affix at a time
sweeneyde 5796757
ensure tuples are not allowed
sweeneyde 6fe9ac5
Fix userstring type behavior
sweeneyde 13e8296
WhatsNew and ACKS
sweeneyde 49fa220
WhatsNew and ACKS
sweeneyde 550beca
fix spelling
sweeneyde 01d0655
Direct readers from (l/r)strip to cut***fix
sweeneyde 3c0e350
Merge branch 'cut_affix' of https://github.com/sweeneyde/cpython into…
sweeneyde fe80ba8
Fix typo in docs
sweeneyde ae23692
minor c formatting consistency
sweeneyde a9e253c
copy/paste errors; don't say 'return the original'
sweeneyde 4c33b74
changed 'cut' to 'remove'
sweeneyde 4413e2e
Change method names in whatsnew
sweeneyde 5dfa968
Update Misc/NEWS.d/next/Core and Builtins/2020-03-11-19-17-36.bpo-399…
sweeneyde aa6eede
new names in the whatsnew header
sweeneyde d941711
Merge branch 'master' into cut_affix
sweeneyde f55836d
add examples of differences between l/rstrip and removeaffix
sweeneyde 8d0584a
Merge branch 'cut_affix' of https://github.com/sweeneyde/cpython into…
sweeneyde 8b6267a
apply changes from review
sweeneyde 61cd530
apply changes from review
sweeneyde ffe72f1
more documentation tweaks
sweeneyde d8f5a99
clean up the NEWS entry
sweeneyde 3df1f38
mention arg type in docstrings
sweeneyde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
clarified: one affix at a time
- Loading branch information
commit 428e733ba44e34a1185c236be8b92acf08ae0829
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.