From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 19 May 2026 17:48:48 +0000 (+0200) Subject: [3.15] gh-69619: Clarify whitespace definition in str.strip docs (#150049) X-Git-Tag: v3.15.0b2~123 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=bec4336badaac36c8080ff3e55676362775f61d8;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-69619: Clarify whitespace definition in str.strip docs (#150049) (cherry picked from commit 17eb17d43f66a0f7985fca05c7c9684bc01fabcd) Co-authored-by: Daniil --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index e3bd1a46891a..b0388c4e1f0b 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2747,6 +2747,8 @@ expression support in the :mod:`re` module). The *chars* argument is not a prefix or suffix; rather, all combinations of its values are stripped. + Whitespace characters are defined by :meth:`str.isspace`. + For example: .. doctest::