summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-12-11 18:51:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-12-11 18:51:08 (GMT)
commitf582b82fe9ae4c0394ed4f6b281aa8b4ca224617 (patch)
tree77ade5444df813eb0ff1ccca21bd49611e3f512d /Objects
parentc82bd7281fb52a66c59f567b7da18390ed9957c1 (diff)
downloadcpython-f582b82fe9ae4c0394ed4f6b281aa8b4ca224617.zip
cpython-f582b82fe9ae4c0394ed4f6b281aa8b4ca224617.tar.gz
cpython-f582b82fe9ae4c0394ed4f6b281aa8b4ca224617.tar.bz2
SF bug #491415 PyDict_UpdateFromSeq2() unused
PyDict_UpdateFromSeq2(): removed it. PyDict_MergeFromSeq2(): made it public and documented it. PyDict_Merge() docs: updated to reveal <wink> that the second argument can be any mapping object.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 3b922a9..e843e76 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -997,11 +997,11 @@ dict_update(PyObject *mp, PyObject *other)
PyDict_{Update,Merge} update/merge from a mapping object.
- PyDict_{Update,Merge}FromSeq2 update/merge from any iterable object
+ PyDict_MergeFromSeq2 updates/merges from any iterable object
producing iterable objects of length 2.
*/
-static int
+int
PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override)
{
PyObject *it; /* iter(seq2) */
@@ -1071,12 +1071,6 @@ Return:
return i;
}
-static int
-PyDict_UpdateFromSeq2(PyObject *d, PyObject *seq2)
-{
- return PyDict_MergeFromSeq2(d, seq2, 1);
-}
-
int
PyDict_Update(PyObject *a, PyObject *b)
{