mirror of https://github.com/python/cpython
Reordered list of methods to hopefully put the most frequently used
ones near the front.
This commit is contained in:
parent
74ba24758e
commit
5d8123f34a
|
@ -963,13 +963,13 @@ dict_clear(mp, args)
|
|||
}
|
||||
|
||||
static PyMethodDef mapp_methods[] = {
|
||||
{"has_key", (PyCFunction)dict_has_key},
|
||||
{"keys", (PyCFunction)dict_keys},
|
||||
{"items", (PyCFunction)dict_items},
|
||||
{"values", (PyCFunction)dict_values},
|
||||
{"update", (PyCFunction)dict_update},
|
||||
{"clear", (PyCFunction)dict_clear},
|
||||
{"copy", (PyCFunction)dict_copy},
|
||||
{"has_key", (PyCFunction)dict_has_key},
|
||||
{"items", (PyCFunction)dict_items},
|
||||
{"keys", (PyCFunction)dict_keys},
|
||||
{"values", (PyCFunction)dict_values},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
@ -1015,12 +1015,12 @@ listremove(self, args)
|
|||
|
||||
static PyMethodDef list_methods[] = {
|
||||
{"append", (PyCFunction)listappend},
|
||||
{"count", (PyCFunction)listcount},
|
||||
{"index", (PyCFunction)listindex},
|
||||
{"insert", (PyCFunction)listinsert},
|
||||
{"sort", (PyCFunction)listsort, 0},
|
||||
{"remove", (PyCFunction)listremove},
|
||||
{"index", (PyCFunction)listindex},
|
||||
{"count", (PyCFunction)listcount},
|
||||
{"reverse", (PyCFunction)listreverse},
|
||||
{"sort", (PyCFunction)listsort, 0},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue