[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.246.4.1,2.246.4.2

Michael Hudson mwh@users.sourceforge.net
Mon, 11 Mar 2002 02:15:02 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv4314

Modified Files:
      Tag: release22-maint
	bltinmodule.c 
Log Message:
backport tim_one's checkin of
    revision 2.248 of bltinmodule.c

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.246.4.1
retrieving revision 2.246.4.2
diff -C2 -d -r2.246.4.1 -r2.246.4.2
*** bltinmodule.c	12 Jan 2002 11:13:24 -0000	2.246.4.1
--- bltinmodule.c	11 Mar 2002 10:15:00 -0000	2.246.4.2
***************
*** 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 *