diff Objects/listobject.c @ 19597:bbdf86f358e9 legacy-trunk

Give the internal immutable list type .extend and .pop methods (they "should have" been added here when they were added to lists).
author Tim Peters <tim.peters@gmail.com>
date Thu, 30 Aug 2001 06:15:32 +0000
parents fd48a55ac364
children 2983b54256c7
line wrap: on
line diff
--- a/Objects/listobject.c	Thu Aug 30 05:16:13 2001 +0000
+++ b/Objects/listobject.c	Thu Aug 30 06:15:32 2001 +0000
@@ -1727,6 +1727,8 @@
 static PyMethodDef immutable_list_methods[] = {
 	{"append",	(PyCFunction)immutable_list_op, METH_VARARGS},
 	{"insert",	(PyCFunction)immutable_list_op, METH_VARARGS},
+	{"extend",      (PyCFunction)immutable_list_op,  METH_O},
+	{"pop",		(PyCFunction)immutable_list_op, METH_VARARGS},
 	{"remove",	(PyCFunction)immutable_list_op, METH_VARARGS},
 	{"index",	(PyCFunction)listindex,         METH_O},
 	{"count",	(PyCFunction)listcount,         METH_O},