diff Objects/listobject.c @ 5784:c043901fa1fe legacy-trunk

Reordered list of methods to hopefully put the most frequently used ones near the front.
author Guido van Rossum <guido@python.org>
date Sun, 13 Jul 1997 03:58:01 +0000
parents 10e9cfa010f0
children 2ee9811c92fd
line wrap: on
line diff
--- a/Objects/listobject.c	Sun Jul 13 03:56:50 1997 +0000
+++ b/Objects/listobject.c	Sun Jul 13 03:58:01 1997 +0000
@@ -1015,12 +1015,12 @@
 
 static PyMethodDef list_methods[] = {
 	{"append",	(PyCFunction)listappend},
-	{"count",	(PyCFunction)listcount},
+	{"insert",	(PyCFunction)listinsert},
+	{"remove",	(PyCFunction)listremove},
 	{"index",	(PyCFunction)listindex},
-	{"insert",	(PyCFunction)listinsert},
+	{"count",	(PyCFunction)listcount},
+	{"reverse",	(PyCFunction)listreverse},
 	{"sort",	(PyCFunction)listsort, 0},
-	{"remove",	(PyCFunction)listremove},
-	{"reverse",	(PyCFunction)listreverse},
 	{NULL,		NULL}		/* sentinel */
 };