You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
str.strip() documents that whitespace is defined by str.isspace(), but str.lstrip() and str.rstrip() did not mention it. This adds the same sentence to both so the three methods are described consistently.
Thanks @picnixz! Applied the same inline phrasing to str.strip so all three (strip / lstrip / rstrip) now read "defaults to removing whitespace, that is characters for which str.isspace is true", and dropped the separate sentence.
Usually, one should ping maintainers after a while, say 1 month, if the first ping doesn't help. Maintainers have limited bandwidth and we can't reply the same day or the following.
Thanks for the review and the approval — really appreciate it. Understood about maintainer bandwidth; I'll be patient. Thanks again for taking the time.
picnixz
changed the title
gh-69619: Define whitespace for str.lstrip() and str.rstrip()
gh-69619: Clarify str.{l,r}strip() documentation
Jun 5, 2026
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.
str.strip()documents that whitespace is defined bystr.isspace(), butstr.lstrip()andstr.rstrip()did not mention it. This adds the same sentence to both so the three methods are described consistently.Documentation-only change.
Relates to #69619