diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-03-09 00:06:26 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-03-09 00:06:26 (GMT) |
commit | d50e544b9f67738f122d9931eab8b8d71633527a (patch) | |
tree | 3ed5373e68a2a990f16559c52b20393c455dba4a | |
parent | 632bda3aa06879396561dde5ed3d93ee8fb8900c (diff) | |
download | cpython-d50e544b9f67738f122d9931eab8b8d71633527a.zip cpython-d50e544b9f67738f122d9931eab8b8d71633527a.tar.gz cpython-d50e544b9f67738f122d9931eab8b8d71633527a.tar.bz2 |
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).
-rw-r--r-- | Python/bltinmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c997ecf..41e906a 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -247,11 +247,11 @@ Fail_it: } 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."; - +"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 * builtin_chr(PyObject *self, PyObject *args) |