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 8d42420 commit ec39b66Copy full SHA for ec39b66
Doc/library/stdtypes.rst
@@ -2562,6 +2562,19 @@ expression support in the :mod:`re` module).
2562
after the separator. If the separator is not found, return a 3-tuple containing
2563
two empty strings, followed by the string itself.
2564
2565
+ For example:
2566
+
2567
+ .. doctest::
2568
2569
+ >>> 'Monty Python'.rpartition(' ')
2570
+ ('Monty', ' ', 'Python')
2571
+ >>> "Monty Python's Flying Circus".rpartition(' ')
2572
+ ("Monty Python's Flying", ' ', 'Circus')
2573
+ >>> 'Monty Python'.rpartition('-')
2574
+ ('', '', 'Monty Python')
2575
2576
+ See also :meth:`partition`.
2577
2578
2579
.. method:: str.rsplit(sep=None, maxsplit=-1)
2580
0 commit comments