https://github.com/python/cpython/commit/fd4c7a8d4d46c9b7db920a6b766d367ab22e6a1c
commit: fd4c7a8d4d46c9b7db920a6b766d367ab22e6a1c
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-07-15T18:15:24Z
summary:
[3.15] gh-153630: Add `str.remove{prefix,suffix}()` to the `str` method summary
(GH-153629) (#153778)
(cherry picked from commit b4662e8e3b60a264486130a171047c7381f993f0)
Co-authored-by: darida12321 <[email protected]>
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 92c89bfc46af2e..5a87ddb1d50156 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]