summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.13.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/whatsnew/3.13.rst')
-rw-r--r--Doc/whatsnew/3.13.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 81e133b..136fe90 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1175,6 +1175,12 @@ New Features
Python ``list.extend()`` and ``list.clear()`` methods.
(Contributed by Victor Stinner in :gh:`111138`.)
+* Add :c:func:`PyDict_Pop` and :c:func:`PyDict_PopString` functions: remove a
+ key from a dictionary and optionally return the removed value. This is
+ similar to :meth:`dict.pop`, but without the default value and not raising
+ :exc:`KeyError` if the key missing.
+ (Contributed by Stefan Behnel and Victor Stinner in :gh:`111262`.)
+
Porting to Python 3.13
----------------------