From 8b1789309661e8988e2b2e37d704cd840349f32a Mon Sep 17 00:00:00 2001 From: Daniil Date: Tue, 19 May 2026 04:10:50 +0300 Subject: [PATCH] gh-69619: Clarify whitespace definition in str.strip docs (GH-150021) (cherry picked from commit 17eb17d43f66a0f7985fca05c7c9684bc01fabcd) Co-authored-by: Daniil --- Doc/library/stdtypes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index ec18cd752591473..94b7c8841759afe 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2743,6 +2743,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::