Skip to content

Commit da23ca0

Browse files
sobolevnencukou
andauthored
Update Doc/c-api/dict.rst
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 5a5a392 commit da23ca0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎Doc/c-api/dict.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,10 @@ Dictionary objects
474474
475475
This is the same as ``PyDict_Merge(a, b, 1)`` in C.
476476
477-
Similar to ``a.update(b)`` in Python except that :c:func:`PyDict_Update`
478-
doesn't not support a sequence of key value pairs as *b* parameter.
479-
Use :c:func:`PyDict_MergeFromSeq2` in this case.
477+
Similar to ``a.update(b)`` in Python, except that this function
478+
does not fall back to the iterating over a sequence of key-value pairs
479+
if *b* is not a mapping.
480+
Use :c:func:`PyDict_MergeFromSeq2` for this case.
480481
481482
Return ``0`` on success or ``-1`` if an exception was raised.
482483

0 commit comments

Comments
 (0)