Skip to content

Commit 3376493

Browse files
committed
gh-160669: Fix PyDict_Update docs
1 parent b301c29 commit 3376493

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎Doc/c-api/dict.rst‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,8 @@ Dictionary objects
472472
473473
.. c:function:: int PyDict_Update(PyObject *a, PyObject *b)
474474
475-
This is the same as ``PyDict_Merge(a, b, 1)`` in C, and is similar to
476-
``a.update(b)`` in Python except that :c:func:`PyDict_Update` doesn't fall
477-
back to the iterating over a sequence of key value pairs if the second
478-
argument has no "keys" attribute. Return ``0`` on success or ``-1`` if an
479-
exception was raised.
475+
This is the same as ``PyDict_Merge(a, b, 1)`` in C.
476+
Return ``0`` on success or ``-1`` if an exception was raised.
480477
481478
.. note::
482479

0 commit comments

Comments
 (0)