This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lebigot
Recipients docs@python, lebigot
Date 2015-01-04.13:19:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420377572.43.0.335658121107.issue23164@psf.upfronthosting.co.za>
In-reply-to
Content
The pydoc documentation for filter reads:

    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.

It would be nicer to know (e.g. when offline and with no local access to the HTML documentation) that filter() can actually be used more generally with an iterable:

    filter(function or None, **iterable**) -> list, tuple, or string
    
    Return those items of **iterable** for which…
History
Date User Action Args
2015-01-04 13:19:32lebigotsetrecipients: + lebigot, docs@python
2015-01-04 13:19:32lebigotsetmessageid: <1420377572.43.0.335658121107.issue23164@psf.upfronthosting.co.za>
2015-01-04 13:19:32lebigotlinkissue23164 messages
2015-01-04 13:19:32lebigotcreate