From a315c8aca04dbf0adc5de57ff0c38414c3eff1bb 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 20e021ec4842b8..ecc11201db7829 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2592,6 +2592,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::