Skip to content

Commit d714e42

Browse files
committed
gh-106318: Add a third example for str.partition() method
1 parent e53633b commit d714e42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,8 @@ expression support in the :mod:`re` module).
23352335

23362336
>>> 'Monty Python'.partition(' ')
23372337
('Monty', ' ', 'Python')
2338+
>>> "Monty Python's Flying Circus".partition(' ')
2339+
('Monty', ' ', "Python's Flying Circus")
23382340
>>> 'Monty Python'.partition('-')
23392341
('Monty Python', '', '')
23402342

0 commit comments

Comments
 (0)