[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.247,2.248
Tim Peters
tim_one@users.sourceforge.net
Fri, 08 Mar 2002 16:06:28 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv11689/python/Python
Modified Files:
bltinmodule.c
Log Message:
Docstring for filter(): Someone on the Tutor list reasonably complained
that it didn't tell enough of the truth.
Bugfix candidate (I guess -- it helps and it's harmless).
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.247
retrieving revision 2.248
diff -C2 -d -r2.247 -r2.248
*** bltinmodule.c 12 Jan 2002 11:05:09 -0000 2.247
--- bltinmodule.c 9 Mar 2002 00:06:26 -0000 2.248
***************
*** 248,256 ****
static char filter_doc[] =
! "filter(function, sequence) -> list\n\
! \n\
! Return a list containing those items of sequence for which function(item)\n\
! is true. If function is None, return a list of items that are true.";
!
static PyObject *
--- 248,256 ----
static char filter_doc[] =
! "filter(function or None, sequence) -> list, tuple, or string\n"
! "\n"
! "Return those items of sequence for which function(item) is true. If\n"
! "function is None, return the items that are true. If sequence is a tuple\n"
! "or string, return the same type, else return a list.";
static PyObject *