comparison Python/bltinmodule.c @ 22200:dab05ab0347b legacy-trunk

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).
author Tim Peters <tim.peters@gmail.com>
date Sat, 09 Mar 2002 00:06:26 +0000
parents 67a5e25dc88b
children 5d383006d36b f4487350c537
comparison
equal deleted inserted replaced
22197:d7f3f83b9658 22200:dab05ab0347b
245 Py_DECREF(it); 245 Py_DECREF(it);
246 return NULL; 246 return NULL;
247 } 247 }
248 248
249 static char filter_doc[] = 249 static char filter_doc[] =
250 "filter(function, sequence) -> list\n\ 250 "filter(function or None, sequence) -> list, tuple, or string\n"
251 \n\ 251 "\n"
252 Return a list containing those items of sequence for which function(item)\n\ 252 "Return those items of sequence for which function(item) is true. If\n"
253 is true. If function is None, return a list of items that are true."; 253 "function is None, return the items that are true. If sequence is a tuple\n"
254 254 "or string, return the same type, else return a list.";
255 255
256 static PyObject * 256 static PyObject *
257 builtin_chr(PyObject *self, PyObject *args) 257 builtin_chr(PyObject *self, PyObject *args)
258 { 258 {
259 long x; 259 long x;