From 5d8123f34af77b988f7dcefd8cef4423879444d8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 13 Jul 1997 03:58:01 +0000 Subject: Reordered list of methods to hopefully put the most frequently used ones near the front. --- Objects/dictobject.c | 8 ++++---- Objects/listobject.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 43d962c..018762b 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -963,13 +963,13 @@ dict_clear(mp, args) } static PyMethodDef mapp_methods[] = { - {"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}, + {"items", (PyCFunction)dict_items}, {"values", (PyCFunction)dict_values}, + {"update", (PyCFunction)dict_update}, + {"clear", (PyCFunction)dict_clear}, + {"copy", (PyCFunction)dict_copy}, {NULL, NULL} /* sentinel */ }; diff --git a/Objects/listobject.c b/Objects/listobject.c index 588053c..02fdda6 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -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 */ }; -- cgit v0.12