Skip to content

Commit e0bc5ec

Browse files
committed
gh-69619: also inline the str.isspace note in str.strip
1 parent 94f3a81 commit e0bc5ec

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,11 +2751,9 @@ expression support in the :mod:`re` module).
27512751

27522752
Return a copy of the string with the leading and trailing characters removed.
27532753
The *chars* argument is a string specifying the set of characters to be removed.
2754-
If omitted or ``None``, the *chars* argument defaults to removing whitespace.
2755-
The *chars* argument is not a prefix or suffix; rather, all combinations of its
2756-
values are stripped.
2757-
2758-
Whitespace characters are defined by :meth:`str.isspace`.
2754+
If omitted or ``None``, the *chars* argument defaults to removing whitespace,
2755+
that is characters for which :meth:`str.isspace` is true. The *chars* argument
2756+
is not a prefix or suffix; rather, all combinations of its values are stripped.
27592757

27602758
For example:
27612759

0 commit comments

Comments
 (0)