Skip to content

gh-69619: Link to isspace() in the strip() and split() documentation - #155444

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-69619-bytes-whitespace
Aug 13, 2026
Merged

gh-69619: Link to isspace() in the strip() and split() documentation#155444
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-69619-bytes-whitespace

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 9, 2026

Copy link
Copy Markdown
Member

str.strip() and friends were linked to str.isspace() in #150021 and #150901, but the byte-sequence methods and the split()/rsplit() methods of both types still said just "whitespace" or "ASCII whitespace" with nothing to follow. Both isspace() methods define the term -- a Unicode-database rule for str, the six byte values for bytes -- so the word itself now links there.

…ation

The methods that default to removing or splitting on whitespace now link
to str.isspace() and bytes.isspace(), where whitespace is defined.
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Aug 9, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 9, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 9, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33982661 | 📁 Comparing 92a6c3d against main (b5c74a6)

  🔍 Preview build  

1 file changed
± library/stdtypes.html

@serhiy-storchaka
serhiy-storchaka merged commit aca38ab into python:main Aug 13, 2026
41 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 13, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@serhiy-storchaka
serhiy-storchaka deleted the gh-69619-bytes-whitespace branch August 13, 2026 09:44
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155667 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155668 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155669 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 13, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 13, 2026
…tation (GH-155444) (GH-155669)

The methods that default to removing or splitting on whitespace now link
to str.isspace() and bytes.isspace(), where whitespace is defined.
(cherry picked from commit aca38ab)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Aug 13, 2026
…tation (GH-155444) (GH-155668)

The methods that default to removing or splitting on whitespace now link
to str.isspace() and bytes.isspace(), where whitespace is defined.
(cherry picked from commit aca38ab)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
…ation (pythonGH-155444)

The methods that default to removing or splitting on whitespace now link
to str.isspace() and bytes.isspace(), where whitespace is defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant