diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-30 06:15:32 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-30 06:15:32 (GMT) |
commit | 52e0717215d87859bebc1437a4f169807a1282ef (patch) | |
tree | 640da92719ffff732d2e3083e8e224a982c704b3 /Objects/listobject.c | |
parent | 692323488baf518117d3ede90189812723f39948 (diff) | |
download | cpython-52e0717215d87859bebc1437a4f169807a1282ef.zip cpython-52e0717215d87859bebc1437a4f169807a1282ef.tar.gz cpython-52e0717215d87859bebc1437a4f169807a1282ef.tar.bz2 |
Give the internal immutable list type .extend and .pop methods (they
"should have" been added here when they were added to lists).
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
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}, |