Skip to content

Commit e988e07

Browse files
committed
Update doc
1 parent 7c84afb commit e988e07

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Doc/c-api/dict.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ Dictionary Objects
185185
``NULL``, and return ``0``.
186186
- On error, raise an exception and return ``-1``.
187187
188-
This is the similar to :meth:`dict.pop`, but without the default value and
189-
do not raise :exc:`KeyError` if the key missing.
188+
This is similar to :meth:`dict.pop`, but without the default value and
189+
not raising :exc:`KeyError` if the key missing.
190190
191191
.. versionadded:: 3.13
192192

Doc/whatsnew/3.13.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,8 @@ New Features
11691169
(Contributed by Victor Stinner in :gh:`111138`.)
11701170

11711171
* Add :c:func:`PyDict_Pop` and :c:func:`PyDict_PopString` functions: remove a
1172-
key from a dictionary and optionally return the removed value. This is the
1173-
similar to :meth:`dict.pop`, but without the default value and do not raise
1172+
key from a dictionary and optionally return the removed value. This is
1173+
similar to :meth:`dict.pop`, but without the default value and not raising
11741174
:exc:`KeyError` if the key missing.
11751175
(Contributed by Stefan Behnel and Victor Stinner in :gh:`111262`.)
11761176

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add :c:func:`PyDict_Pop` and :c:func:`PyDict_PopString` functions: remove a key
2-
from a dictionary and optionally return the removed value. This is the similar
3-
to :meth:`dict.pop`, but without the default value and do not raise
4-
:exc:`KeyError` if the key missing. Patch by Stefan Behnel and Victor Stinner.
2+
from a dictionary and optionally return the removed value. This is similar to
3+
:meth:`dict.pop`, but without the default value and not raising :exc:`KeyError`
4+
if the key missing. Patch by Stefan Behnel and Victor Stinner.

0 commit comments

Comments
 (0)