diff options
author | Michael W. Hudson <mwh@python.net> | 2002-03-11 10:15:00 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-03-11 10:15:00 (GMT) |
commit | db780071b7e907479145eda085842638d0a990c8 (patch) | |
tree | a8bacddf59ee315b305fc1bffd76e257ed6dcf63 | |
parent | 956c42021346cfd00a3facadc7984e19db0e4895 (diff) | |
download | cpython-db780071b7e907479145eda085842638d0a990c8.zip cpython-db780071b7e907479145eda085842638d0a990c8.tar.gz cpython-db780071b7e907479145eda085842638d0a990c8.tar.bz2 |
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).
-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) |