Issue 18456: Documentation for PyDict_Update is incorrect (original) (raw)

Issue18456

Created on 2013-07-15 02:11 by ncoghlan, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PyDict_Update.patch priyapappachan,2014-03-25 08:16 Updated PyDict_Update doc review
Messages (4)
msg193070 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2013-07-15 02:11
The docs from PyDict_Update (http://docs.python.org/3/c-api/dict.html#PyDict_Update) claim it is equivalent to the Python level dict.update (http://docs.python.org/3/library/stdtypes#dict.update) This isn't accurate - unlike dict.update, PyDict_Update doesn't fall back to the iterating over a sequence of key value pairs if the second argument has no "keys" attribute.
msg213116 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2014-03-11 05:04
Nice catch.
msg214788 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-25 08:35
New changeset 8e1637e3a099 by Georg Brandl in branch '3.4': Closes #18456: Doc fix: PyDict_Update only works with dict-like objects, not key-value sequences. Patch by priyapappachan. http://hg.python.org/cpython/rev/8e1637e3a099
msg214789 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-25 08:35
New changeset 2e51845a99e2 by Georg Brandl in branch '2.7': Closes #18456: Doc fix: PyDict_Update only works with dict-like objects, not key-value sequences. Patch by priyapappachan. http://hg.python.org/cpython/rev/2e51845a99e2
History
Date User Action Args
2022-04-11 14:57:48 admin set github: 62656
2014-03-25 08:35:35 python-dev set messages: +
2014-03-25 08:35:13 python-dev set status: open -> closednosy: + python-devmessages: + resolution: fixedstage: needs patch -> resolved
2014-03-25 08:16:52 priyapappachan set files: + PyDict_Update.patchkeywords: + patch
2014-03-11 05:04:03 rhettinger set nosy: + rhettingermessages: +
2014-03-09 21:15:06 Jill.M set nosy: + Jill.M
2013-08-08 17:49:02 ezio.melotti set nosy: + ezio.melotti
2013-07-15 02:11:12 ncoghlan create