Give the internal immutable list type .extend and .pop methods (they

"should have" been added here when they were added to lists).
This commit is contained in:
Tim Peters 2001-08-30 06:15:32 +00:00
parent 692323488b
commit 52e0717215
1 changed files with 2 additions and 0 deletions

View 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},