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

Anthony Flury report at bugs.python.org
Mon Apr 30 18:05:57 EDT 2018


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>
_______________________________________


More information about the docs mailing list