[issue33006] docstring of filter function is incorrect

Pierre Thibault report at bugs.python.org
Mon Apr 30 19:03:51 EDT 2018


Pierre Thibault <pierre.thibault1.dev at gmail.com> added the comment:

I guess it does since it gives false information.

2018-04-30 18:05 GMT-04:00 Anthony Flury <report at bugs.python.org>:

>
> Anthony Flury <anthony.flury at btinternet.com> added the comment:
>
> Strictly speaking the official Python2 reference document isn't a great
> example - for instance:
>
> ' If function is None, the identity function is assumed, that is, all
> elements of iterable that are false are removed.'
>
> Implies that items are removed from the iterable are removed, but they
> aren't; they are simply not included in the sequence that is returned.
>
> Does the documentation need to be fixed too ?
>
> ----------
> nosy: +anthony-flury
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue33006>
> _______________________________________
>

----------

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


More information about the Python-bugs-list mailing list