Skip to content

Commit 9884353

Browse files
authored
Add removeprefix() and removesuffix() to the str method summary.
The "Text and Binary Sequence Type Methods Summary" section did not include the `removeprefix` and `removesuffix` functions, which were present later on in the "String Methods" section and the "Bytes and Bytearray Operations" section This is a small change that rectifies that.
1 parent 832bc0b commit 9884353

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,10 @@ category.
16621662
| | :meth:`str.startswith` | :meth:`bytes.startswith` |
16631663
| +-------------------------------------------+---------------------------------------------------+
16641664
| | :meth:`str.endswith` | :meth:`bytes.endswith` |
1665+
| +------------------+------------------------+--------------------+------------------------------+
1666+
| | :meth:`str.removeprefix` | :meth:`bytes.removeprefix` |
1667+
| +-------------------------------------------+---------------------------------------------------+
1668+
| | :meth:`str.removesuffix` | :meth:`bytes.removesuffix` |
16651669
| +-------------------------------------------+---------------------------------------------------+
16661670
| | :meth:`str.count` | :meth:`bytes.count` |
16671671
| +-------------------------------------------+---------------------------------------------------+

0 commit comments

Comments
 (0)