]> granicus.if.org Git - python/commitdiff
Give the internal immutable list type .extend and .pop methods (they
authorTim Peters <tim.peters@gmail.com>
Thu, 30 Aug 2001 06:15:32 +0000 (06:15 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 30 Aug 2001 06:15:32 +0000 (06:15 +0000)
"should have" been added here when they were added to lists).

Objects/listobject.c

index 22f7e5ea6c9c70aaee124cb336c4cd24afa1516d..2b6207fcbc475c960a2d0370f8cb661402f2ee0e 100644 (file)
@@ -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},