Skip to content

Commit 8b17893

Browse files
Daniil20xxmiss-islington
authored andcommitted
gh-69619: Clarify whitespace definition in str.strip docs (GH-150021)
(cherry picked from commit 17eb17d) Co-authored-by: Daniil <d.mayorov@innopolis.university>
1 parent 1cc98b7 commit 8b17893

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,6 +2743,8 @@ expression support in the :mod:`re` module).
27432743
The *chars* argument is not a prefix or suffix; rather, all combinations of its
27442744
values are stripped.
27452745

2746+
Whitespace characters are defined by :meth:`str.isspace`.
2747+
27462748
For example:
27472749

27482750
.. doctest::

0 commit comments

Comments
 (0)