We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b401b4 commit 9fa3eccCopy full SHA for 9fa3ecc
1 file changed
Doc/library/stdtypes.rst
@@ -2588,13 +2588,7 @@ expression support in the :mod:`re` module).
2588
>>> 'mississippi'.rstrip('ipz')
2589
'mississ'
2590
2591
- See :meth:`str.removesuffix` for a method that will remove a single suffix
2592
- string rather than all of a set of characters. For example::
2593
-
2594
- >>> 'Monty Python'.rstrip(' Python')
2595
- 'M'
2596
- >>> 'Monty Python'.removesuffix(' Python')
2597
- 'Monty'
+ See also :meth:`strip` and :meth:`removesuffix`.
2598
2599
2600
.. method:: str.split(sep=None, maxsplit=-1)
0 commit comments