From 52e0717215d87859bebc1437a4f169807a1282ef Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 30 Aug 2001 06:15:32 +0000 Subject: Give the internal immutable list type .extend and .pop methods (they "should have" been added here when they were added to lists). --- Objects/listobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/listobject.c b/Objects/listobject.c index 22f7e5e..2b6207f 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1727,6 +1727,8 @@ immutable_list_op(void) 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}, -- cgit v0.12