]> granicus.if.org Git - python/commitdiff
Reordered list of methods to hopefully put the most frequently used
authorGuido van Rossum <guido@python.org>
Sun, 13 Jul 1997 03:58:01 +0000 (03:58 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 13 Jul 1997 03:58:01 +0000 (03:58 +0000)
ones near the front.

Objects/dictobject.c
Objects/listobject.c

index 43d962c2c0e4a0b766b13306e0d855e5e02e2418..018762b7b8e748195206911cad4f10563cf6443e 100644 (file)
@@ -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 */
 };
 
index 588053c7411e5e39d07939fe6a58d781abb389c6..02fdda63921b5eda5053344198217b9a8ffc24dc 100644 (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 */
 };