projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6923234
)
Give the internal immutable list type .extend and .pop methods (they
author
Tim Peters
<tim.peters@gmail.com>
Thu, 30 Aug 2001 06:15:32 +0000
(06:15 +0000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/Objects/listobject.c
b/Objects/listobject.c
index 22f7e5ea6c9c70aaee124cb336c4cd24afa1516d..2b6207fcbc475c960a2d0370f8cb661402f2ee0e 100644
(file)
--- 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},