[docs] [issue33006] docstring of filter function is incorrect

Pierre Thibault report at bugs.python.org
Mon Mar 5 20:36:31 EST 2018


New submission from Pierre Thibault <pierre.thibault1.dev at gmail.com>:

> help(filter)

Help on built-in function filter in module __builtin__:

filter(...)
    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.
(END)

The second argument can be an iterable. Suggestion: Replace the docstring with the definition found at https://docs.python.org/2/library/functions.html#filter.

----------
assignee: docs at python
components: Documentation
messages: 313302
nosy: Pierre Thibault, docs at python
priority: normal
severity: normal
status: open
title: docstring of filter function is incorrect
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33006>
_______________________________________


More information about the docs mailing list