From: Tim Peters Date: Thu, 30 Aug 2001 06:15:32 +0000 (+0000) Subject: Give the internal immutable list type .extend and .pop methods (they X-Git-Tag: v2.2a3~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52e0717215d87859bebc1437a4f169807a1282ef;p=python Give the internal immutable list type .extend and .pop methods (they "should have" been added here when they were added to lists). --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 22f7e5ea6c..2b6207fcbc 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},