Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8d5131

Browse files
committed
Renamed dict.absorb() (too spungy) to dict.update().
1 parent c22eb01 commit a8d5131

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/dictobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ dict_items(mp, args)
675675
}
676676

677677
static PyObject *
678-
dict_absorb(mp, args)
678+
dict_update(mp, args)
679679
register dictobject *mp;
680680
PyObject *args;
681681
{
@@ -685,7 +685,7 @@ dict_absorb(mp, args)
685685
if (!PyArg_Parse(args, "O!", &PyDict_Type, &other))
686686
return NULL;
687687
if (other == mp)
688-
goto done; /* a.absorb(a); nothing to do */
688+
goto done; /* a.update(a); nothing to do */
689689
/* Do one big resize at the start, rather than incrementally
690690
resizing as we insert new items. Expect that there will be
691691
no (or few) overlapping keys. */
@@ -963,7 +963,7 @@ dict_clear(mp, args)
963963
}
964964

965965
static PyMethodDef mapp_methods[] = {
966-
{"absorb", (PyCFunction)dict_absorb},
966+
{"update", (PyCFunction)dict_update},
967967
{"clear", (PyCFunction)dict_clear},
968968
{"copy", (PyCFunction)dict_copy},
969969
{"has_key", (PyCFunction)dict_has_key},

0 commit comments

Comments
 (0)