https://github.com/python/cpython/commit/b4662e8e3b60a264486130a171047c7381f993f0
commit: b4662e8e3b60a264486130a171047c7381f993f0
branch: main
author: darida12321 <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-07-15T20:05:17+02:00
summary:
gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary
(#153629)
Co-authored-by: Stan Ulbrych <[email protected]>
files:
M Doc/library/stdtypes.rst
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 886648e820f071..9df5eb78d286a5 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1720,7 +1720,11 @@ category.
| | :meth:`str.strip` |
:meth:`bytes.strip` |
|
+--------------------+----------------------+----------------------+----------------------------+
| | :meth:`str.lstrip` | :meth:`str.rstrip` |
:meth:`bytes.lstrip` | :meth:`bytes.rstrip` |
-+--------------------------+--------------------+----------------------+----------------------+----------------------------+
+|
+--------------------+----------------------+----------------------+----------------------------+
+| | :meth:`str.removeprefix` |
:meth:`bytes.removeprefix` |
+|
+-------------------------------------------+---------------------------------------------------+
+| | :meth:`str.removesuffix` |
:meth:`bytes.removesuffix` |
++--------------------------+-------------------------------------------+---------------------------------------------------+
| Translation and Encoding | :meth:`str.translate` |
:meth:`bytes.translate` |
|
+-------------------------------------------+---------------------------------------------------+
| | :meth:`str.maketrans` |
:meth:`bytes.maketrans` |
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]