mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
692323488b
commit
52e0717215
1 changed files with 2 additions and 0 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue