Reordered list of methods to hopefully put the most frequently used

ones near the front.
This commit is contained in:
Guido van Rossum 1997-07-13 03:58:01 +00:00
parent 74ba24758e
commit 5d8123f34a
2 changed files with 7 additions and 7 deletions

View File

@ -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 */
};

View File

@ -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 */
};