[Tutor] error in docs regarding map

Tim Peters tim.one@comcast.net
Sun, 10 Mar 2002 23:36:24 -0500


[Christopher Smith]
> OK, pretty soon I'll just trust my own judgement, but would you agree
> that the docs obtained when typing help(filter) are wrong ...

BTW, I changed the filter docstring.  In 2.3 it will say:

>>> print filter.__doc__
filter(function or None, sequence) -> list, tuple, or string

Return those items of sequence for which function(item) is true.  If
function is None, return the items that are true.  If sequence is a tuple
or string, return the same type, else return a list.
>>>

Don't let it go to your head <wink -- and thanks>.