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 48a8cd1 commit 4ada03fCopy full SHA for 4ada03f
Doc/library/stdtypes.rst
@@ -2321,6 +2321,19 @@ expression support in the :mod:`re` module).
2321
after the separator. If the separator is not found, return a 3-tuple containing
2322
two empty strings, followed by the string itself.
2323
2324
+ For example:
2325
+
2326
+ .. doctest::
2327
2328
+ >>> 'Monty Python'.rpartition(' ')
2329
+ ('Monty', ' ', 'Python')
2330
+ >>> "Monty Python's Flying Circus".rpartition(' ')
2331
+ ("Monty Python's Flying", ' ', 'Circus')
2332
+ >>> 'Monty Python'.rpartition('-')
2333
+ ('', '', 'Monty Python')
2334
2335
+ See also :meth:`partition`.
2336
2337
2338
.. method:: str.rsplit(sep=None, maxsplit=-1)
2339
0 commit comments