[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.100,2.101
Tim Peters
tim_one@users.sourceforge.net
Wed, 29 Aug 2001 23:15:34 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv9058
Modified Files:
listobject.c
Log Message:
Give the internal immutable list type .extend and .pop methods (they
"should have" been added here when they were added to lists).
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.100
retrieving revision 2.101
diff -C2 -d -r2.100 -r2.101
*** listobject.c 2001/08/29 23:52:52 2.100
--- listobject.c 2001/08/30 06:15:32 2.101
***************
*** 1728,1731 ****
--- 1728,1733 ----
{"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},