Skip to content

Commit 17eb17d

Browse files
authored
gh-69619: Clarify whitespace definition in str.strip docs (GH-150021)
1 parent 43c3438 commit 17eb17d

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
@@ -2747,6 +2747,8 @@ expression support in the :mod:`re` module).
27472747
The *chars* argument is not a prefix or suffix; rather, all combinations of its
27482748
values are stripped.
27492749

2750+
Whitespace characters are defined by :meth:`str.isspace`.
2751+
27502752
For example:
27512753

27522754
.. doctest::

0 commit comments

Comments
 (0)